Skip to content

Commit

Permalink
build: add sourcemap support (#1687)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuweiGL authored Jun 30, 2021
1 parent 8735e2f commit 7bb433b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/rollup.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export default (filename, targetName, ...plugins) => [
format: 'umd',
file: `dist/${filename}.umd.development.js`,
name: targetName,
sourcemap: true,
amd: {
id: filename,
},
Expand All @@ -77,6 +78,7 @@ export default (filename, targetName, ...plugins) => [
format: 'umd',
file: `dist/${filename}.umd.production.js`,
name: targetName,
sourcemap: true,
amd: {
id: filename,
},
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"noUnusedLocals": false,
"removeComments": true,
"preserveConstEnums": true,
"sourceMap": false,
"sourceMap": true,
"declaration": true,
"experimentalDecorators": true,
"downlevelIteration": true,
Expand Down

0 comments on commit 7bb433b

Please sign in to comment.