babel-plugin-transform-runtime-file-extensions

2.0.0 • Public • Published

babel-plugin-transform-runtime-file-extensions

npm version CI status

A Babel plugin that adds file extensions to Babel runtime import specifiers and require paths for Node.js ESM compatibility.

This is a temporary workaround for babel/babel#8462.

Setup

To install from npm run:

npm install babel-plugin-transform-runtime-file-extensions --save-dev

Configure Babel to use the plugin, after @babel/plugin-transform-runtime:

{
  "plugins": ["@babel/transform-runtime", "transform-runtime-file-extensions"]
}

Package Sidebar

Install

npm i babel-plugin-transform-runtime-file-extensions

Weekly Downloads

19

Version

2.0.0

License

MIT

Unpacked Size

5.15 kB

Total Files

4

Last publish

Collaborators

  • jaydenseric