css-modules / css-modulesify

A browserify plugin to load CSS Modules
MIT License
403 stars 47 forks source link

more accurate way for resolving files in node_modules #88

Closed anru closed 8 years ago

anru commented 8 years ago

This PR is adapted version of accordingly PR for css-modules-loader-core: https://github.com/css-modules/css-modules-loader-core/pull/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.

joshwnj commented 8 years ago

Thanks @anru !

joshwnj commented 8 years ago

published v0.20.0