Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

mixmaxhq/babel-plugin-import-everywhere

Repository files navigation

babel-plugin-import-everywhere

A babel plugin to support the import statement anywhere that statements are valid, and transform those statements to commonjs imports.

Adapted from a comment by @nicolo-ribaudo.

Install

npm install -D babel-plugin-import-everywhere

Usage

{
  "plugins": ["babel-plugin-import-everywhere"]
}

Building

npm run build

Outputs a commonjs-compatible bundle to dist/index.js.

Running tests

npm test

Publishing

Merging to master will automatically publish the package if commits with non-trivial changes have been introduced (per commit conventions).

About

Work in progress: use import statements in any context, not just the top-level module scope

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published