-
-
Notifications
You must be signed in to change notification settings - Fork 428
Closed
Description
It appears that 7.0 breaks sass modules we are using from npm. I guess it is related to #479
For example foundation-sites that we are using imports it's internal modules like this:
// Sass utilities
@import 'util/util';
Now, unfortunately 'util/util' is a valid file inside node_modules (from 'node-util' pkg), and the build fails with errror like this:
ERROR in ./src/style.scss (./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./src/style.scss)
Module build failed:
// Copyright Joyent, Inc. and other Node contributors.
^
Invalid CSS after "...N THE SOFTWARE.": expected 1 selector or at-rule, was "var formatRegExp = "
in ###/webpack-sass-broken-imports/node_modules/util/util.js (line 1, column 1)
@ ./src/style.scss 2:14-117
@ ./src/index.js
repro repo: https://github.com/larpo/webpack-sass-broken-module-imports
Is there a way to revert to the old behaviour? I don't see any mentions on READMe about how to configure the aliasing behaviour.
dnalborczyk, dpikt, ioanungurean, eseliger, Yohanna and 68 more