File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change
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' ) }
3
+
1
4
var fs = require ( 'fs' ) ;
2
5
var path = require ( 'path' ) ;
3
6
var through = require ( 'through' ) ;
@@ -6,7 +9,6 @@ var FileSystemLoader = require('css-modules-loader-core/lib/file-system-loader')
6
9
var assign = require ( 'object-assign' ) ;
7
10
var stringHash = require ( 'string-hash' ) ;
8
11
9
-
10
12
/*
11
13
Custom `generateScopedName` function for `postcss-modules-scope`.
12
14
Short names consisting of source hash and line number.
Original file line number Diff line number Diff line change 5
5
"main" : " index.js" ,
6
6
"dependencies" : {
7
7
"css-modules-loader-core" : " ^1.0.0-beta4" ,
8
+ "promise-polyfill" : " ^2.1.0" ,
8
9
"object-assign" : " ^3.0.0" ,
9
10
"string-hash" : " ^1.1.0" ,
10
11
"through" : " ^2.3.7"
You can’t perform that action at this time.
0 commit comments