diff --git a/build/webpack.base.cjs b/build/webpack.base.cjs index a3ab326aef..6c18774e61 100644 --- a/build/webpack.base.cjs +++ b/build/webpack.base.cjs @@ -8,15 +8,12 @@ const commonConfig = { rules: [ { test: /\.(js)$/, - exclude: [ - /node_modules\/codem-isoboxer/, - /node_modules\/fast-deep-equal/, - /node_modules\/html-entities/, - /node_modules\/imsc/, - /node_modules\/localforage/, - /node_modules\/path-browserify/, - /node_modules\/ua-parser-js/ - ], + include: { + and: [ + /node_modules/ + ], + not: [/core-js/] + }, use: [ { loader: 'string-replace-loader',