Skip to content

Commit

Permalink
fix: no export
Browse files Browse the repository at this point in the history
  • Loading branch information
HomyeeKing committed Jan 14, 2025
1 parent 2b34f79 commit 1a36504
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/ice/src/service/webpackServerCompiler/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ export class WebpackServerCompiler {
return {
mode: 'production',
entry: options.entryPoints as string[],
target: false,
target: 'node12.20',
externalsPresets: {
node: false,
},
output: {
filename: `[name].${options.format === 'esm' ? 'mjs' : 'cjs'}`,
path: options.outdir,
Expand All @@ -31,6 +34,9 @@ export class WebpackServerCompiler {
cjs: 'commonjs',
}[options.format],
clean: true,
library: {
type: 'commonjs2',
},
},
devtool: 'source-map',
externals: options.externals,
Expand Down

0 comments on commit 1a36504

Please sign in to comment.