File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,15 @@ function getSassImplementation(loaderContext, implementation) {
7272 // eslint-disable-next-line consistent-return
7373 return resolvedImplementation ;
7474 } else if ( implementationName === "node-sass" ) {
75- if ( ! semver . satisfies ( version , "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" ) ) {
75+ if (
76+ ! semver . satisfies (
77+ version ,
78+ "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
79+ )
80+ ) {
7681 loaderContext . emitError (
7782 new Error (
78- `Node Sass version ${ version } is incompatible with ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0.`
83+ `Node Sass version ${ version } is incompatible with ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 .`
7984 )
8085 ) ;
8186 }
@@ -236,7 +241,8 @@ async function getSassOptions(
236241// - ~@org/
237242// - ~@org/package
238243// - ~@org/package/
239- const isModuleImport = / ^ ~ ( [ ^ / ] + | [ ^ / ] + \/ | @ [ ^ / ] + [ / ] [ ^ / ] + | @ [ ^ / ] + \/ ? | @ [ ^ / ] + [ / ] [ ^ / ] + \/ ) $ / ;
244+ const isModuleImport =
245+ / ^ ~ ( [ ^ / ] + | [ ^ / ] + \/ | @ [ ^ / ] + [ / ] [ ^ / ] + | @ [ ^ / ] + \/ ? | @ [ ^ / ] + [ / ] [ ^ / ] + \/ ) $ / ;
240246
241247/**
242248 * When `sass`/`node-sass` tries to resolve an import, it uses a special algorithm.
You can’t perform that action at this time.
0 commit comments