Skip to content

Commit b9791f6

Browse files
committed
Merge branch 'values-support'
2 parents 9761c17 + 43868a5 commit b9791f6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
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

34
var fs = require('fs');
45
var path = require('path');
@@ -9,7 +10,6 @@ var assign = require('object-assign');
910
var stringHash = require('string-hash');
1011
var 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
];

0 commit comments

Comments
 (0)