Babel Resolve: Imports to Browser ESM
A Babel 7 compatible transform to convert import paths to browser-compatible
source paths. Users of previous module systems are used to using extensionless
imports and files from node_modules
. This module is designed to make any
module loadable by the web module system.
Usage
npm install --save-dev babel-plugin-resolve-imports-for-browser
Update your babel configuration:
Now code like this:
;
Will turn into this:
;
And code like this:
;
Will turn into this:
;