Revert "feat(bazel): expose explicit mapping from closure to devmode files (#36262)"

This reverts commit 7ac166ff08.
This commit is contained in:
Misko Hevery 2020-06-15 10:19:56 -07:00
parent 300c2fec9c
commit cc49a91de7
1 changed files with 3 additions and 12 deletions

View File

@ -184,7 +184,6 @@ def _expected_outs(ctx):
devmode_js_files = [] devmode_js_files = []
closure_js_files = [] closure_js_files = []
declaration_files = [] declaration_files = []
transpilation_infos = []
summary_files = [] summary_files = []
metadata_files = [] metadata_files = []
@ -234,18 +233,11 @@ def _expected_outs(ctx):
continue continue
filter_summaries = ctx.attr.filter_summaries filter_summaries = ctx.attr.filter_summaries
closure_js = [f.replace(".js", ".mjs") for f in devmode_js if not filter_summaries or not f.endswith(".ngsummary.js")]
declarations = [f.replace(".js", ".d.ts") for f in devmode_js] declarations = [f.replace(".js", ".d.ts") for f in devmode_js]
for devmode_ext in devmode_js: devmode_js_files += [ctx.actions.declare_file(basename + ext) for ext in devmode_js]
devmode_js_file = ctx.actions.declare_file(basename + devmode_ext) closure_js_files += [ctx.actions.declare_file(basename + ext) for ext in closure_js]
devmode_js_files.append(devmode_js_file)
if not filter_summaries or not devmode_ext.endswith(".ngsummary.js"):
closure_ext = devmode_ext.replace(".js", ".mjs")
closure_js_file = ctx.actions.declare_file(basename + closure_ext)
closure_js_files.append(closure_js_file)
transpilation_infos.append(struct(closure = closure_js_file, devmode = devmode_js_file))
declaration_files += [ctx.actions.declare_file(basename + ext) for ext in declarations] declaration_files += [ctx.actions.declare_file(basename + ext) for ext in declarations]
summary_files += [ctx.actions.declare_file(basename + ext) for ext in summaries] summary_files += [ctx.actions.declare_file(basename + ext) for ext in summaries]
if not _is_bazel(): if not _is_bazel():
@ -288,7 +280,6 @@ def _expected_outs(ctx):
closure_js = closure_js_files, closure_js = closure_js_files,
devmode_js = devmode_js_files, devmode_js = devmode_js_files,
declarations = declaration_files, declarations = declaration_files,
transpilation_infos = transpilation_infos,
summaries = summary_files, summaries = summary_files,
metadata = metadata_files, metadata = metadata_files,
dts_bundles = dts_bundles, dts_bundles = dts_bundles,