aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-07 00:20:56 +0800
committercrupest <crupest@outlook.com>2020-08-07 00:20:56 +0800
commit61f3c5a591688087ad1af114048f8574a13b7290 (patch)
treef8342fc45ee2dc2a362b3173561df9feb0540f7b
parent978c9071613177aea8b3d773827c87fa329522cd (diff)
downloadtimeline-61f3c5a591688087ad1af114048f8574a13b7290.tar.gz
timeline-61f3c5a591688087ad1af114048f8574a13b7290.tar.bz2
timeline-61f3c5a591688087ad1af114048f8574a13b7290.zip
Use eval-cheap-module-source-map for development.
-rw-r--r--Timeline/ClientApp/.babelrc3
-rw-r--r--Timeline/ClientApp/src/tsconfig.json2
-rw-r--r--Timeline/ClientApp/webpack.config.dev.js2
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,