Skip to content

Commit 932a98a

Browse files
meixgallen-zh
authored andcommitted
fix(build): remove eval from webpack output (#53)
1 parent 42b4ac0 commit 932a98a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/mars-build/src/compiler/file/compileModules.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ function compile(val, key, destPath) {
6969
filename: modulePath,
7070
libraryTarget: 'commonjs'
7171
},
72+
devtool: false,
7273
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development'
7374
}, (err, stats) => {
7475
if (err) {

packages/mars-build/src/compiler/runtime/compiler.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ function compile(options) {
4646
filename: 'index.js',
4747
libraryTarget: 'commonjs'
4848
},
49+
devtool: false,
4950
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
5051
plugins: [
5152
new webpack.DefinePlugin({

0 commit comments

Comments
 (0)