aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-05-20 20:44:18 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-05-20 22:22:13 +0900
commit71f3a1ea2d3d648db9f628bb1deddc41263ab438 (patch)
tree753a68d2f4cedbbf9e3977e2c307e7946b70b158
parentfa0325bb8a453c607fd7d8f35d6c881cbdf0b8e7 (diff)
Configure webpack and tsconfig
-rw-r--r--package.json2
-rw-r--r--tsconfig.json1
-rw-r--r--webpack.config.js16
3 files changed, 3 insertions, 16 deletions
diff --git a/package.json b/package.json
index ac6fa75..d12779d 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,7 @@
"build": "NODE_ENV=production webpack --mode production --progress --display-error-details",
"package": "npm run build && script/package",
"lint": "eslint --ext .js,.jsx,.ts,.tsx src",
- "type-checks": "tsc",
+ "type-checks": "tsc --noEmit",
"test": "karma start",
"test:e2e": "mocha --timeout 8000 e2e"
},
diff --git a/tsconfig.json b/tsconfig.json
index 2f26430..9f90223 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -5,7 +5,6 @@
"lib": ["es6", "dom", "es2017"],
"allowJs": true,
"checkJs": true,
- "noEmit": true,
"jsx": "react",
"sourceMap": true,
"outDir": "./build",
diff --git a/webpack.config.js b/webpack.config.js
index 540418d..cb56835 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -20,21 +20,9 @@ config = {
module: {
rules: [
{
- test: [ /\.js$/, /\.jsx$/, /\.ts$/, /\.tsx$/],
+ test: [ /\.ts$/, /\.tsx$/],
exclude: /node_modules/,
- loader: 'babel-loader',
- options: {
- presets: [
- {
- plugins: [
- ["@babel/plugin-proposal-decorators", { "legacy": true }],
- '@babel/plugin-proposal-class-properties'
- ]
- },
- '@babel/react',
- '@babel/preset-typescript'
- ]
- },
+ loader: 'ts-loader'
},
{
test: /\.css$/,