Skip to content

Commit 0468a70

Browse files
committed
Update of "postcss-modules-scope"
1 parent 49340b1 commit 0468a70

File tree

3 files changed

+25
-20
lines changed

3 files changed

+25
-20
lines changed

package-lock.json

Lines changed: 22 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"postcss-modules": "^3.2.2",
1111
"postcss-modules-extract-imports": "^3.0.0",
1212
"postcss-modules-local-by-default": "^4.0.0",
13-
"postcss-modules-scope": "^2.2.0",
13+
"postcss-modules-scope": "^3.0.0",
1414
"postcss-modules-values": "^4.0.0"
1515
},
1616
"description": "Transforms styleName to className using compile time CSS module resolution.",

src/requireCssModule.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
import postcss from 'postcss';
1515
import ExtractImports from 'postcss-modules-extract-imports';
1616
import LocalByDefault from 'postcss-modules-local-by-default';
17-
import Scope from 'postcss-modules-scope';
17+
import newScopePlugin from 'postcss-modules-scope';
1818
import Values from 'postcss-modules-values';
1919
import optionsDefaults from './schemas/optionsDefaults';
2020
import type {
@@ -149,7 +149,7 @@ export default (cssSourceFilePath: string, options: OptionsType): StyleModuleMap
149149
Values,
150150
LocalByDefault,
151151
ExtractImports,
152-
new Scope({
152+
newScopePlugin({
153153
generateScopedName,
154154
}),
155155
new Parser({

0 commit comments

Comments
 (0)