Closed anru closed 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.
Thanks @anru !
published v0.20.0
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.