silane

silane/babel-plugin-replace-import-...

Babel plugin to replace extension of file name written in import statement

JavaScript
18
4
Apache License 2.0

This Babel plugin replaces file extensions in import statements and dynamic imports, allowing developers to automatically convert between different module formats like ESModule (.mjs) and CommonJS (.cjs). It's particularly useful for npm package maintainers who need to support both ESModule and CommonJS versions of their code simultaneously, especially when using Babel to transpile between these formats.

Total donated
Undistributed
Share with your subscribers: