-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
I want to use this module along with babel-plugin-transform-imports so that I can map both internal and external import paths. However, this plugin causes babel-plugin-transform-imports to stop functioning.
E.g.:
[
'babel-plugin-root-import',
{
rootPathPrefix: '~',
rootPathSuffix: './src',
},
],
[
'babel-plugin-transform-imports',
{
'~/components': {
preventFullImport: true,
transform: '~/components/${member}',
},
'@material-ui/core': {
preventFullImport: true,
transform: '@material-ui/core/${member}',
},
lodash: {
preventFullImport: true,
transform: 'lodash/${member}',
},
],
In the built files, ~ is appropriately mapped for internal modules, however it is as if babel-plugin-transform-imports never ran (built files are still using named imports).
Metadata
Metadata
Assignees
Labels
No labels