diff --git a/tools/ng_rollup_bundle/BUILD.bazel b/tools/ng_rollup_bundle/BUILD.bazel index a1e47c5f05..c615a86bbb 100644 --- a/tools/ng_rollup_bundle/BUILD.bazel +++ b/tools/ng_rollup_bundle/BUILD.bazel @@ -2,10 +2,7 @@ package(default_visibility = ["//visibility:public"]) load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary") -exports_files([ - "rollup.config.js", - "terser_config.json", -]) +exports_files(["rollup.config.js"]) nodejs_binary( name = "rollup_with_build_optimizer", diff --git a/tools/ng_rollup_bundle/ng_rollup_bundle.bzl b/tools/ng_rollup_bundle/ng_rollup_bundle.bzl index 93f468dd7f..18007cc8f1 100644 --- a/tools/ng_rollup_bundle/ng_rollup_bundle.bzl +++ b/tools/ng_rollup_bundle/ng_rollup_bundle.bzl @@ -391,7 +391,6 @@ def ng_rollup_bundle(name, **kwargs): # maintain the comments off behavior. We pass the --comments flag with # a regex that always evaluates to false to do this. "args": ["--comments", "/bogus_string_to_suppress_all_comments^/"], - "config_file": "//tools/ng_rollup_bundle:terser_config.json", "sourcemap": False, } diff --git a/tools/ng_rollup_bundle/terser_config.json b/tools/ng_rollup_bundle/terser_config.json deleted file mode 100644 index aeed0b6732..0000000000 --- a/tools/ng_rollup_bundle/terser_config.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "compress": { - "global_defs": {"ngDevMode": false, "ngI18nClosureMode": false, "ngJitMode": false}, - "keep_fnames": "bazel_no_debug", - "passes": 3, - "pure_getters": true, - "reduce_funcs": "bazel_no_debug", - "reduce_vars": "bazel_no_debug", - "sequences": "bazel_no_debug" - }, - "mangle": "bazel_no_debug" -} \ No newline at end of file