Exclude core-js from transpiling

This commit is contained in:
Pirate Praveen 2020-03-28 19:53:26 +05:30
parent 0abc996aea
commit dd848e864e

View file

@ -23,6 +23,15 @@
},
module: {
@@ -171,7 +170,7 @@
},
{
test: /\.js$/,
- exclude: path => /node_modules|vendor[\\/]assets/.test(path) && !/\.vue\.js/.test(path),
+ exclude: [ path => /node_modules|vendor[\\/]assets/.test(path) && !/\.vue\.js/.test(path), /\bcore-js\b/,/\bwebpack\/buildin\b/ ],
loader: 'babel-loader',
options: {
cacheDirectory: path.join(CACHE_PATH, 'babel-loader'),
@@ -433,19 +432,6 @@
// enable HMR only in webpack-dev-server
DEV_SERVER_LIVERELOAD && new webpack.HotModuleReplacementPlugin(),