From afab21c05020807298e1bdf1ba368b353420f696 Mon Sep 17 00:00:00 2001 From: Jake Niemiec Date: Thu, 30 May 2019 13:39:25 -0500 Subject: [PATCH] fix: Don't let babel & core-js transpile each other (#2110) Fixes #2109 Error on fresh app --- package/rules/node_modules.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/rules/node_modules.js b/package/rules/node_modules.js index a17c0d83a..6488bee77 100644 --- a/package/rules/node_modules.js +++ b/package/rules/node_modules.js @@ -3,10 +3,11 @@ const { cache_path: cachePath } = require('../config') const { nodeEnv } = require('../env') // Compile standard ES features for JS in node_modules with Babel. +// Regex details for exclude: https://regex101.com/r/CglKdg/3/ module.exports = { test: /\.(js|mjs)$/, include: /node_modules/, - exclude: /@babel(?:\/|\\{1,2})runtime|core-js/, + exclude: /(?:@?babel(?:\/|\\{1,2}|-).+)|regenerator-runtime|core-js/, use: [ { loader: 'babel-loader',