Skip to content

Commit

Permalink
fix: Don't let babel & core-js transpile each other (#2110)
Browse files Browse the repository at this point in the history
Fixes #2109 Error on fresh app
  • Loading branch information
jakeNiemiec authored and gauravtiwari committed May 30, 2019
1 parent 80f3b55 commit afab21c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/rules/node_modules.js
Expand Up @@ -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',
Expand Down

0 comments on commit afab21c

Please sign in to comment.