Adding a .bazelignore so building ... doesn't try to build the node_modules directory.
Removing a bazelrc flag that no longer exists and isn't needed anymore.
Switching to a modern rollup_bundle implementation. This requires:
Adding a config file to set the global name and license banner.
Generating output formats separately, since it no longer generates all of them.
Using the Rollup Buble plugin to downlevel (transpile) to ES5.
Switching npm_package to the modern pkg_npm.
This cleans up some "replacements" (formerly called "substitutions")
Switching from bazel to bazelisk as bazel is now deprecated for this use case.
Upgrading to rules_nodejs version 4.6.0.
Switching ts_web_test to the modern karma_web_test (which is in the @bazel/concatjs package).
The JS output is roughly the same. There are some small changes related to variable renaming and optimizations that shouldn't affect runtime behavior. The main difference is that the const DEBUG replacements now work (before the DEBUG const got inlined before the replacement step).
This includes:
...
doesn't try to build the node_modules directory.bazel
tobazelisk
asbazel
is now deprecated for this use case.ts_web_test
to the modernkarma_web_test
(which is in the@bazel/concatjs
package).The JS output is roughly the same. There are some small changes related to variable renaming and optimizations that shouldn't affect runtime behavior. The main difference is that the const
DEBUG
replacements now work (before theDEBUG
const got inlined before the replacement step).