Skip to content

Commit

Permalink
fix(webpack): Fixed script optimization not working for node target (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Nov 7, 2022
1 parent 4553776 commit a690dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack/src/utils/config.ts
Expand Up @@ -154,7 +154,7 @@ export function getBaseWebpackPartial(
webpackConfig.node = false;

// could be an object { scripts: boolean; styles: boolean }
if (options.optimization === true) {
if (internalOptions.isScriptOptimizeOn) {
webpackConfig.optimization = {
minimize: true,
minimizer: [
Expand Down

0 comments on commit a690dbd

Please sign in to comment.