1.2.0 • Published 4 years ago

babel-plugin-transform-import-aliases v1.2.0

Weekly downloads
30
License
ISC
Repository
github
Last release
4 years ago

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') } },
    ],
  ]
}