Skip to content

Commit e042f20

Browse files
committed
fix(NA): node module main field resolution for new platform
1 parent a8c32b7 commit e042f20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/kbn-optimizer/src/worker/webpack.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ export function getWebpackConfig(bundle: Bundle, worker: WorkerConfig) {
289289

290290
resolve: {
291291
extensions: ['.js', '.ts', '.tsx', '.json'],
292+
mainFields: ['browser', 'browserify', 'main'],
292293
alias: {
293294
tinymath: require.resolve('tinymath/lib/tinymath.es5.js'),
294295
},

0 commit comments

Comments
 (0)