babel-plugin-module-resolver icon indicating copy to clipboard operation
babel-plugin-module-resolver copied to clipboard

applying multiple aliases

Open srolel opened this issue 5 years ago • 0 comments

is there a way to apply multiple aliases, e.g.

[
      'module-resolver',
      {
        alias: {
          '^lazy!(.*)': '\\1',
          bundles: './static/bundles',
        },
      },
    ],

I would like lazy!bundles/some/file to resolve to ./static/bundles/some/file.

Thanks!

srolel avatar Oct 25 '20 00:10 srolel