Skip to content

more accurate way for resolving files in node_modules #88

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

Merged
merged 1 commit into from
Mar 7, 2016

Conversation

anru
Copy link
Contributor

@anru anru commented Mar 5, 2016

This PR is adapted version of accordingly PR for css-modules-loader-core: css-modules/css-modules-loader-core#89

require.resolve always try resolve file from place where it was called. But it's not correct behaviour. We need resolve from original css file.

substack's resolve package allows do it in right way.

anru referenced this pull request in css-modules/postcss-modules-resolve-imports Mar 5, 2016
joshwnj added a commit that referenced this pull request Mar 7, 2016
more accurate way for resolving files in node_modules
@joshwnj joshwnj merged commit d38844c into css-modules:master Mar 7, 2016
@joshwnj
Copy link
Member

joshwnj commented Mar 7, 2016

Thanks @anru !

@joshwnj
Copy link
Member

joshwnj commented Mar 7, 2016

published v0.20.0

@anru anru deleted the more-accurate-resolving branch March 7, 2016 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants