Browse Source

chore: 添加sourceMap

pull/2435/head
shulandmimi 5 years ago
parent
commit
a4ecf838e2
  1. 1
      .eslintignore
  2. 1
      build/webpack.dev.js
  3. 3
      tsconfig.json

1
.eslintignore

@ -1,3 +1,4 @@
node_modules/*
dist/
lib/
*.html

1
build/webpack.dev.js

@ -17,4 +17,5 @@ module.exports = smart(CommonConf, {
libraryTarget: 'umd',
libraryExport: 'default',
},
devtool: 'eval-source-map',
})

3
tsconfig.json

@ -13,7 +13,8 @@
"declaration": true,
/* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
"sourceMap": true,
/* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "dist",
/* Redirect output structure to the directory. */

Loading…
Cancel
Save