babel-plugin-transform-import-aliases
v1.2.0
Published
Transforms import aliases into resolveable paths
Downloads
91
Maintainers
Readme
Babel transform will convert an import alias, eg @
to the specified path. This
enables you to transform convenience aliases into resolveable paths with Babel.
{
plugins: [
[
'babel-plugin-transform-import-aliases',
{ aliases: { '@': path.resolve(fs.realpathSync(process.cwd()), 'src') } },
],
]
}