Skip to content

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