From d0b53678e2817f8dc285e1a1e41bb632847b204f Mon Sep 17 00:00:00 2001 From: schmelczerandras Date: Thu, 17 Sep 2020 16:52:12 +0200 Subject: [PATCH] Improve build pipeline --- tsconfig.json | 10 ++++------ webpack.config.js | 5 +---- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index fceef6e..48b6aef 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,17 +2,15 @@ "compilerOptions": { "outDir": "lib", "sourceMap": true, - "target": "es5", - "downlevelIteration": true, - "allowJs": true, + "declaration": true, + "declarationMap": true, + "target": "es6", "esModuleInterop": true, "strict": true, "experimentalDecorators": true, "moduleResolution": "Node", "module": "es6", - "declaration": true, "composite": true, - "declarationMap": true, - "lib": ["es6", "dom", "es2017"] + "lib": ["dom", "es2017"] } } diff --git a/webpack.config.js b/webpack.config.js index 4eac601..7878d80 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -6,9 +6,6 @@ var PATHS = { bundles: path.resolve(__dirname, 'lib'), }; -const isProduction = process.env.NODE_ENV == 'production'; -const isDevelopment = !isProduction; - module.exports = { entry: { main: [PATHS.entryPoint], @@ -31,9 +28,9 @@ module.exports = { }, optimization: { minimize: true, - usedExports: true, minimizer: [ new TerserJSPlugin({ + sourceMap: true, test: /\.js$/i, }), ],