From 182c48627e71551577c7e614cd695bba4fb93b47 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 19 Dec 2021 18:46:47 -0800 Subject: [PATCH] Remove useBuiltIns configuation --- packages/core-js/babel.config.json | 3 +-- packages/core-js/webpack.common.js | 3 +++ packages/mindplot/babel.config.json | 3 +-- packages/mindplot/webpack.prod.js | 1 - packages/web2d/babel.config.json | 3 +-- packages/web2d/webpack.common.js | 3 +++ yarn.lock | 4 ++-- 7 files changed, 11 insertions(+), 9 deletions(-) diff --git a/packages/core-js/babel.config.json b/packages/core-js/babel.config.json index 50b773af..9b57738f 100644 --- a/packages/core-js/babel.config.json +++ b/packages/core-js/babel.config.json @@ -3,8 +3,7 @@ [ "@babel/preset-env", { - "corejs": "3.15", - "useBuiltIns": "usage", + "useBuiltIns": false, "targets": { "esmodules": true } diff --git a/packages/core-js/webpack.common.js b/packages/core-js/webpack.common.js index 750b150a..30fde1f0 100644 --- a/packages/core-js/webpack.common.js +++ b/packages/core-js/webpack.common.js @@ -11,6 +11,9 @@ module.exports = { } }, target: 'web', + optimization: { + usedExports: true, + }, module: { rules: [ { diff --git a/packages/mindplot/babel.config.json b/packages/mindplot/babel.config.json index e79d68f4..8480461a 100644 --- a/packages/mindplot/babel.config.json +++ b/packages/mindplot/babel.config.json @@ -3,8 +3,7 @@ [ "@babel/preset-env", { - "corejs": "3.15", - "useBuiltIns": "usage", + "useBuiltIns": false, "targets": { "esmodules": true } diff --git a/packages/mindplot/webpack.prod.js b/packages/mindplot/webpack.prod.js index f8ec68bc..3a363f3f 100644 --- a/packages/mindplot/webpack.prod.js +++ b/packages/mindplot/webpack.prod.js @@ -1,7 +1,6 @@ const { merge } = require('webpack-merge'); const common = require('./webpack.common'); -/** @type {import('webpack').Configuration} */ const prodConfig = { mode: 'production', devtool: 'source-map', diff --git a/packages/web2d/babel.config.json b/packages/web2d/babel.config.json index e79d68f4..8480461a 100644 --- a/packages/web2d/babel.config.json +++ b/packages/web2d/babel.config.json @@ -3,8 +3,7 @@ [ "@babel/preset-env", { - "corejs": "3.15", - "useBuiltIns": "usage", + "useBuiltIns": false, "targets": { "esmodules": true } diff --git a/packages/web2d/webpack.common.js b/packages/web2d/webpack.common.js index 14aca07d..3666324f 100644 --- a/packages/web2d/webpack.common.js +++ b/packages/web2d/webpack.common.js @@ -10,6 +10,9 @@ module.exports = { type: 'umd', }, }, + optimization: { + usedExports: true, + }, module: { rules: [ { diff --git a/yarn.lock b/yarn.lock index 0261d0bd..438a7354 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4185,7 +4185,7 @@ clean-webpack-plugin@^3.0.0: "@types/webpack" "^4.4.31" del "^4.1.1" -clean-webpack-plugin@^4.0.0-alpha.0: +clean-webpack-plugin@^4.0.0, clean-webpack-plugin@^4.0.0-alpha.0: version "4.0.0" resolved "https://registry.yarnpkg.com/clean-webpack-plugin/-/clean-webpack-plugin-4.0.0.tgz#72947d4403d452f38ed61a9ff0ada8122aacd729" integrity sha512-WuWE1nyTNAyW5T7oNyys2EN0cfP2fdRxhxnIQWiAp0bMabPdHhoGxM8A6YL2GhqwgrPnnaemVE7nv5XJ2Fhh2w== @@ -8497,7 +8497,7 @@ joi@^17.4.0: "@sideway/formula" "^3.0.0" "@sideway/pinpoint" "^2.0.0" -jquery@^3.6.0: +jquery@3.6.0: version "3.6.0" resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.6.0.tgz#c72a09f15c1bdce142f49dbf1170bdf8adac2470" integrity sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==