Skip to content

A babel plugin that converts CJS to ESM. Use with caution

Notifications You must be signed in to change notification settings

calebeby/babel-plugin-un-cjs

Repository files navigation

babel-plugin-un-cjs

Tries to convert a commonjs module to an esm module to be pulled into rollup or another bundler

THIS IS UNSTABLE

USE WITH CAUTION

There are many many many edge cases that won't work with this. Many or most ways that commonjs is used will work with this plugin. If you find a case that doesn't work, you can open an issue. No guarantees on whether it can or will be fixed.

Priorities

  1. Preserve functionality with default export.
  2. Create additional named exports as is possible

About

A babel plugin that converts CJS to ESM. Use with caution

Resources

Stars

Watchers

Forks

Packages

No packages published