@@ -184,12 +184,12 @@ def _write_rollup_config(
184
184
185
185
return config
186
186
187
- def _run_rollup (ctx , rollup_config , inputs , format ):
187
+ def _run_rollup (ctx , rollup_config , inputs ):
188
188
outdir = ctx .actions .declare_directory ("%s_fesm_bundle_out" % ctx .label .name )
189
189
190
190
args = ctx .actions .args ()
191
191
args .add ("--config" , rollup_config )
192
- args .add ("--output.format" , format )
192
+ args .add ("--output.format" , "esm" )
193
193
args .add ("--output.dir" , outdir .path + "/fesm2022" )
194
194
195
195
# Note: if the input has external source maps then we need to also install and use
@@ -462,7 +462,7 @@ def _ng_package_impl(ctx):
462
462
463
463
rollup_config = _write_rollup_config (ctx , ctx .bin_dir .path , metadata_arg , ctx .attr .side_effect_entry_points )
464
464
rollup_inputs = depset (static_files , transitive = [unscoped_all_entry_point_esm2022_depset ])
465
- bundles_out = _run_rollup (ctx , rollup_config , rollup_inputs , "esm" )
465
+ bundles_out = _run_rollup (ctx , rollup_config , rollup_inputs )
466
466
467
467
packager_inputs .append (bundles_out )
468
468
0 commit comments