Skip to content
This repository was archived by the owner on Jan 16, 2018. It is now read-only.
This repository was archived by the owner on Jan 16, 2018. It is now read-only.

Add support for aliases regex matching #2

@gunta

Description

@gunta

Hi again!
I hope to not be too spammy, but I'll try to report all the issues I find along the way ;)

Right now I'm using an alias to resolve a package name,
but the test regex doesn't tries to match the defined aliases.

Current way of doing it:

 resolve: {
      alias: {
        angular: 'angular/angular'
      }
    },
    module: {
      loaders: [{ test: /angular\/angular/, loader: 'exports?angular'}]
    }

Easier and less verbose way supporting alias names:

    module: {
      loaders: [{ test: /^angular$/, loader: 'exports?angular'}]
    }

Or even better, defaulting a test: String parameter to alias matching:

    module: {
      loaders: [{ test: 'angular', loader: 'exports?angular'}]
    }

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions