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$/,