Remove useBuiltIns configuation

This commit is contained in:
Paulo Gustavo Veiga 2021-12-19 18:46:47 -08:00
parent 43b3f45ac8
commit 182c48627e
7 changed files with 11 additions and 9 deletions

View File

@ -3,8 +3,7 @@
[
"@babel/preset-env",
{
"corejs": "3.15",
"useBuiltIns": "usage",
"useBuiltIns": false,
"targets": {
"esmodules": true
}

View File

@ -11,6 +11,9 @@ module.exports = {
}
},
target: 'web',
optimization: {
usedExports: true,
},
module: {
rules: [
{

View File

@ -3,8 +3,7 @@
[
"@babel/preset-env",
{
"corejs": "3.15",
"useBuiltIns": "usage",
"useBuiltIns": false,
"targets": {
"esmodules": true
}

View File

@ -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',

View File

@ -3,8 +3,7 @@
[
"@babel/preset-env",
{
"corejs": "3.15",
"useBuiltIns": "usage",
"useBuiltIns": false,
"targets": {
"esmodules": true
}

View File

@ -10,6 +10,9 @@ module.exports = {
type: 'umd',
},
},
optimization: {
usedExports: true,
},
module: {
rules: [
{

View File

@ -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==