How to use babel-plugin-transform-es2015-modules-commonjs - 1 common examples

To help you get started, we’ve selected a few babel-plugin-transform-es2015-modules-commonjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github meteor / babel-preset-meteor / plugins / sloppy-modules.js View on Github external
module.exports = [function () {
  var plugin = strictModulesPluginFactory.apply(this, arguments);
  // Since babel-preset-meteor uses an exact version of the
  // babel-plugin-transform-es2015-modules-commonjs transform (6.4.5), we
  // can be sure this plugin.inherits property is indeed the
  // babel-plugin-transform-strict-mode transform that we wish to disable.
  // Otherwise it would be difficult to know exactly what we're deleting
  // here, since plugins don't provide much identifying information.
  delete plugin.inherits;
  return plugin;
}, {
  allowTopLevelThis: true,

babel-plugin-transform-es2015-modules-commonjs

This plugin transforms ES2015 modules to CommonJS

MIT
Latest version published 7 years ago

Package Health Score

82 / 100
Full package analysis

Popular babel-plugin-transform-es2015-modules-commonjs functions