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' ) }
23
34var fs = require ( 'fs' ) ;
45var path = require ( 'path' ) ;
@@ -9,7 +10,6 @@ var assign = require('object-assign');
910var stringHash = require ( 'string-hash' ) ;
1011var ReadableStream = require ( 'stream' ) . Readable ;
1112
12-
1313/*
1414 Custom `generateScopedName` function for `postcss-modules-scope`.
1515 Short names consisting of source hash and line number.
@@ -49,7 +49,8 @@ function getDefaultPlugins (options) {
4949 scope . generateScopedName = customNameFunc || defaultNameFunc ;
5050
5151 return [
52- Core . localByDefault
52+ Core . values
53+ , Core . localByDefault
5354 , Core . extractImports
5455 , scope
5556 ] ;
You can’t perform that action at this time.
0 commit comments