Socket
Socket
Sign inDemoInstall

babel-plugin-transform-runtime-file-extensions

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-plugin-transform-runtime-file-extensions

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


Version published
Weekly downloads
46
increased by142.11%
Maintainers
1
Install size
5.03 kB
Created
Weekly downloads
 

Changelog

Source

2.0.0

Major

  • Updated Node.js support to ^10.13.0 || ^12.0.0 || >= 13.7.0.
  • Updated dev dependencies, some of which require newer Node.js versions than previously supported.

Patch

  • Also run GitHub Actions with Node.js v14.
  • Transform @babel/runtime/regenerator require or import specifiers to @babel/runtime/regenerator/index.js, via #1.
  • Added more tests.

Readme

Source

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"]
}

Keywords

FAQs

Last updated on 23 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc