We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--env noSourceMap
1 parent dadf5b4 commit d8547a9Copy full SHA for d8547a9
build/webpack.config.js
@@ -250,7 +250,7 @@ ${ pkg.name } v${ pkg.version }
250
loader: 'babel-loader',
251
options: {
252
compact: true,
253
- sourceMaps: true,
+ sourceMaps: !noSourceMap,
254
255
presets: [
256
@@ -286,7 +286,7 @@ ${ pkg.name } v${ pkg.version }
286
configFile: Path.resolve(__dirname, 'tsconfig.json'),
287
onlyCompileBundledFiles: true,
288
compilerOptions: {
289
- sourceMap: true,
+ sourceMap: !noSourceMap,
290
outDir: distPath,
291
declaration: true,
292
declarationDir: Path.resolve(distPath, 'types'),
0 commit comments