Skip to content

Commit

Permalink
fix(shared-scripts): properly use isSideEffectFree function
Browse files Browse the repository at this point in the history
There was another typo, preventing use of `isSideEffectFree`.
  • Loading branch information
devversion committed Dec 12, 2022
1 parent 7246a9c commit 57b5fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared-scripts/angular-optimization/esbuild-plugin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export async function createEsbuildAngularOptimizePlugin(opts, additionalBabelPl

// If the current file is denoted as explicit side effect free, add the pure
// top-level functions optimization plugin for this file.
if (opts.optimize.isSideEffectFreeFn && opts.optimize.isSideEffectFree(args.path)) {
if (opts.optimize.isSideEffectFree && opts.optimize.isSideEffectFree(args.path)) {
plugins.push(devkitOptimizePlugins.pureToplevelFunctionsPlugin);
}
}
Expand Down

0 comments on commit 57b5fea

Please sign in to comment.