Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. const es2015preset = require('babel-preset-es2015');
  2. const commonjsPlugin = require('babel-plugin-transform-es2015-modules-commonjs');
  3.  
  4. es2015preset.plugins.forEach(function(plugin) {
  5. if (plugin.length && plugin[0] === commonjsPlugin) {
  6. plugin[1].strict = false;
  7. }
  8. });
  9.  
  10. module.exports = es2015preset;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement