From d9053e26b5117132c5589ee6b0dfc877019f49a9 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Mon, 8 Feb 2021 22:45:41 +0100 Subject: [PATCH] update configs --- .babelrc | 6 +++--- tsconfig.json | 2 +- webpack.config.js | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.babelrc b/.babelrc index eb5b0c1..fdc0cc0 100644 --- a/.babelrc +++ b/.babelrc @@ -6,9 +6,9 @@ ["@babel/preset-env", { "useBuiltIns": false, "targets": { - "esmodules": true, - }, - }], + "esmodules": true + } + }] ] } // { diff --git a/tsconfig.json b/tsconfig.json index 8ee3397..f73287b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "outDir": "./ts-out", "allowJs": true, - "target": "es2020" + "target": "es2018" }, "include": [ "./src/**/*" ] } \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index 380794c..aa5dbf3 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -35,8 +35,9 @@ const config = { module: { rules: [ { - test: /\.tsx?$/, + test: /\.ts$/, loader: 'ts-loader', + exclude: /node_modules/ }, { test: /\.vue$/,