File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
- if ( ! global . Promise ) { global . Promise = require ( 'promise-polyfill' ) ; }
1
+ // Some css-modules-loader-code dependencies use Promise so we'll provide it for older node versions
2
+ if ( ! global . Promise ) { global . Promise = require ( 'promise-polyfill' ) }
2
3
3
4
var fs = require ( 'fs' ) ;
4
5
var path = require ( 'path' ) ;
@@ -9,7 +10,6 @@ var assign = require('object-assign');
9
10
var stringHash = require ( 'string-hash' ) ;
10
11
var ReadableStream = require ( 'stream' ) . Readable ;
11
12
12
-
13
13
/*
14
14
Custom `generateScopedName` function for `postcss-modules-scope`.
15
15
Short names consisting of source hash and line number.
@@ -49,7 +49,8 @@ function getDefaultPlugins (options) {
49
49
scope . generateScopedName = customNameFunc || defaultNameFunc ;
50
50
51
51
return [
52
- Core . localByDefault
52
+ Core . values
53
+ , Core . localByDefault
53
54
, Core . extractImports
54
55
, scope
55
56
] ;
You can’t perform that action at this time.
0 commit comments