Skip to content

Alias not being replaced #68

Description

@rafaelfbs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions