Skip to content

Commit

Permalink
fix: target
Browse files Browse the repository at this point in the history
  • Loading branch information
HomyeeKing committed Jan 8, 2025
1 parent 76ea85b commit 55dd72b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/ice/src/service/webpackServerCompiler/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export class WebpackServerCompiler {
return {
mode: 'production',
entry: options.entryPoints as string[],
target: 'node12.20',
output: {
filename: `[name].${options.format === 'esm' ? 'mjs' : 'cjs'}`,
path: options.outdir,
Expand All @@ -35,9 +36,9 @@ export class WebpackServerCompiler {
chunks: 'all',
cacheGroups: {
default: false,
vendors: {
vendor: {
test: /[\\/]node_modules[\\/]/,
name: 'vendors',
name: 'vendor',
chunks: 'all',
priority: 10,
reuseExistingChunk: true,
Expand Down

0 comments on commit 55dd72b

Please sign in to comment.