diff options
author | crupest <crupest@outlook.com> | 2020-08-07 00:20:56 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-07 00:20:56 +0800 |
commit | 60124e9d83ae2b4ab90d5d45cd5cdfcacc9c3e1b (patch) | |
tree | f7e1848583ea74daa6ada134f27e39b4c3fdafda | |
parent | a656f37811661db502606b674f91ef1a7005d108 (diff) | |
download | timeline-60124e9d83ae2b4ab90d5d45cd5cdfcacc9c3e1b.tar.gz timeline-60124e9d83ae2b4ab90d5d45cd5cdfcacc9c3e1b.tar.bz2 timeline-60124e9d83ae2b4ab90d5d45cd5cdfcacc9c3e1b.zip |
Use eval-cheap-module-source-map for development.
-rw-r--r-- | Timeline/ClientApp/.babelrc | 3 | ||||
-rw-r--r-- | Timeline/ClientApp/src/tsconfig.json | 2 | ||||
-rw-r--r-- | Timeline/ClientApp/webpack.config.dev.js | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/Timeline/ClientApp/.babelrc b/Timeline/ClientApp/.babelrc index 78d36a3d..092f2f73 100644 --- a/Timeline/ClientApp/.babelrc +++ b/Timeline/ClientApp/.babelrc @@ -1,8 +1,7 @@ {
"presets": [
"@babel/env",
- "@babel/preset-react",
- "@babel/preset-typescript"
+ "@babel/preset-react"
],
"plugins": [
"@babel/plugin-syntax-dynamic-import",
diff --git a/Timeline/ClientApp/src/tsconfig.json b/Timeline/ClientApp/src/tsconfig.json index f429a553..00277635 100644 --- a/Timeline/ClientApp/src/tsconfig.json +++ b/Timeline/ClientApp/src/tsconfig.json @@ -11,7 +11,7 @@ "moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
- "jsx": "react",
+ "jsx": "preserve",
"sourceMap": true
}
}
\ No newline at end of file diff --git a/Timeline/ClientApp/webpack.config.dev.js b/Timeline/ClientApp/webpack.config.dev.js index 80295664..fe5528ce 100644 --- a/Timeline/ClientApp/webpack.config.dev.js +++ b/Timeline/ClientApp/webpack.config.dev.js @@ -15,7 +15,7 @@ module.exports = (env) => { return {
entry,
mode: 'development',
- devtool: 'eval-source-map',
+ devtool: 'eval-cheap-module-source-map',
module: {
rules: [
...commonRules,
|