From b4bac6106acedf660d4b8b590ee4500ff51ec7f4 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 30 Mar 2021 15:06:18 +0300 Subject: babel: exclude es.symbol.* polyfills from the bundle --- webpack.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'webpack.config.js') diff --git a/webpack.config.js b/webpack.config.js index c4fa2913..a9329712 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -19,7 +19,11 @@ module.exports = (env, argv) => { module: { rules: [{ test: /\.js$/, - exclude: /@babel(?:\/|\\{1,2})runtime|core-js/, + exclude: [ + /\bnode_modules\b/, + /\bcore-js\b/, + /\bwebpack\/buildin\b/ + ], loader: 'babel-loader' }] }, -- cgit v1.2.3