Skip to content

Commit 5b6b16d

Browse files
authored
feat(utoopack): enable nodePolyfill by default (#13163)
1 parent e498865 commit 5b6b16d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/bundler-utoopack/src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,6 @@ export async function getProdUtooPackConfig(
147147
optimization: {
148148
modularizeImports,
149149
concatenateModules: true,
150-
// minify: false,
151-
// moduleIds: 'named',
152150
},
153151
resolve: {
154152
alias: getNormalizedAlias(
@@ -168,6 +166,7 @@ export async function getProdUtooPackConfig(
168166
define: {
169167
'process.env': JSON.stringify(processEnvForUtoopack),
170168
},
169+
nodePolyfill: true,
171170
},
172171
opts.config.utoopack || {},
173172
),
@@ -279,6 +278,7 @@ export async function getDevUtooPackConfig(
279278
define: {
280279
'process.env': JSON.stringify(processEnvForUtoopack),
281280
},
281+
nodePolyfill: true,
282282
},
283283
opts.config.utoopack || {},
284284
),

0 commit comments

Comments
 (0)