Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement