babel-plugin-transform-import-resolve
Resolve import paths for named dependencies
Example
In
Out
Installation
$ npm install babel-plugin-transform-import-resolve
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
$ babel --plugins transform-import-resolve script.js
Via Node API
To override how the path is transformed, pass a Function to the parse
option:
const options = { return path }