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 authored and Jack Hsu committed Nov 7, 2022
1 parent cec607b commit 39d197f
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 39d197f

Please sign in to comment.