I have a webpack config like this:
{ ... alias: { mylib: path.resolve(__dirname, 'src'), }, ... }
and my module importing like this:
import MyComponent from 'mylib/my_component';
and the generated code:
var _my_component = require('mylib/my_component');
Does this plugin resolve the module path and replace it? I know that exists a plugin for that, babel-plugin-webpack-alias, but it doesnt work well.
I have a webpack config like this:
{ ... alias: { mylib: path.resolve(__dirname, 'src'), }, ... }and my module importing like this:
import MyComponent from 'mylib/my_component';and the generated code:
var _my_component = require('mylib/my_component');Does this plugin resolve the module path and replace it? I know that exists a plugin for that, babel-plugin-webpack-alias, but it doesnt work well.