Created
January 19, 2017 22:47
-
-
Save joscha/03601b140260724236c4db20328bacbf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const es2015preset = require('babel-preset-es2015'); | |
const commonjsPlugin = require('babel-plugin-transform-es2015-modules-commonjs'); | |
es2015preset.plugins.forEach(function(plugin) { | |
if (plugin.length && plugin[0] === commonjsPlugin) { | |
plugin[1].strict = false; | |
} | |
}); | |
module.exports = es2015preset; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment