From 32b8f46f668f02ab7720cb88cf24c783f3fd61fc Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sat, 2 Oct 2021 20:29:24 -0700 Subject: [PATCH] Clean up webpack configuration --- packages/core-js/webpack.common.js | 1 + packages/core-js/webpack.dev.js | 1 - packages/mindplot/webpack.common.js | 3 ++- packages/mindplot/webpack.dev.js | 1 - packages/web2d/webpack.common.js | 1 + packages/web2d/webpack.playground.js | 1 - 6 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/core-js/webpack.common.js b/packages/core-js/webpack.common.js index 9fc5bf47..925a2a9d 100644 --- a/packages/core-js/webpack.common.js +++ b/packages/core-js/webpack.common.js @@ -8,6 +8,7 @@ module.exports = { filename: 'core.js', publicPath: '', }, + target: 'web', module: { rules: [ { diff --git a/packages/core-js/webpack.dev.js b/packages/core-js/webpack.dev.js index 69bbd6d3..990418e1 100644 --- a/packages/core-js/webpack.dev.js +++ b/packages/core-js/webpack.dev.js @@ -4,7 +4,6 @@ const common = require('./webpack.common'); const devConfig = { mode: 'development', - target: 'web', plugins: [new HotModuleReplacementPlugin()], devtool: 'eval-source-map' }; diff --git a/packages/mindplot/webpack.common.js b/packages/mindplot/webpack.common.js index 64ced230..3e8a74a7 100644 --- a/packages/mindplot/webpack.common.js +++ b/packages/mindplot/webpack.common.js @@ -22,8 +22,9 @@ module.exports = { }, ], }, + target: 'web', resolve: { - extensions: ['.js', '.jsx', '.json'], + extensions: ['.js', '.json'], }, plugins: [new CleanWebpackPlugin()], }; diff --git a/packages/mindplot/webpack.dev.js b/packages/mindplot/webpack.dev.js index 34d5da02..ab8a522b 100644 --- a/packages/mindplot/webpack.dev.js +++ b/packages/mindplot/webpack.dev.js @@ -10,7 +10,6 @@ const devConfig = { port: 8080, open: true, }, - target: 'web', plugins: [new HotModuleReplacementPlugin()], devtool: 'eval-source-map', }; diff --git a/packages/web2d/webpack.common.js b/packages/web2d/webpack.common.js index 2d0eca12..108e5fbd 100644 --- a/packages/web2d/webpack.common.js +++ b/packages/web2d/webpack.common.js @@ -22,6 +22,7 @@ module.exports = { }, ], }, + target: 'web', resolve: { extensions: ['.js', '.jsx', '.json'], }, diff --git a/packages/web2d/webpack.playground.js b/packages/web2d/webpack.playground.js index ebfe74d4..679e9297 100644 --- a/packages/web2d/webpack.playground.js +++ b/packages/web2d/webpack.playground.js @@ -41,7 +41,6 @@ module.exports = { open: true, }, mode: 'development', - target: 'web', devtool: 'source-map', module: { rules: [