Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for glob for aliases #88

Closed
sheerun opened this issue Oct 20, 2016 · 2 comments
Closed

Allow for glob for aliases #88

sheerun opened this issue Oct 20, 2016 · 2 comments

Comments

@sheerun
Copy link

sheerun commented Oct 20, 2016

Use case: mocking css modules.

{
  "alias": {
    "**/*.scss": "identity-obj-proxy"
  }
}
@sheerun
Copy link
Author

sheerun commented Oct 20, 2016

Even better: regexp like "/\.(scss|css|less)$/"

See moduleNameMapper from Jest

@tleunen
Copy link
Owner

tleunen commented Oct 25, 2016

Very interesting! I really like the idea of having regex support.
Want to add the feature? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants