Skip to content

Instantly share code, notes, and snippets.

@joscha
Created January 19, 2017 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joscha/03601b140260724236c4db20328bacbf to your computer and use it in GitHub Desktop.
Save joscha/03601b140260724236c4db20328bacbf to your computer and use it in GitHub Desktop.
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