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+
14var fs = require ( 'fs' ) ;
25var path = require ( 'path' ) ;
36var through = require ( 'through' ) ;
@@ -6,7 +9,6 @@ var FileSystemLoader = require('css-modules-loader-core/lib/file-system-loader')
69var assign = require ( 'object-assign' ) ;
710var stringHash = require ( 'string-hash' ) ;
811
9-
1012/*
1113 Custom `generateScopedName` function for `postcss-modules-scope`.
1214 Short names consisting of source hash and line number.
Original file line number Diff line number Diff line change 55 "main" : " index.js" ,
66 "dependencies" : {
77 "css-modules-loader-core" : " ^1.0.0-beta4" ,
8+ "promise-polyfill" : " ^2.1.0" ,
89 "object-assign" : " ^3.0.0" ,
910 "string-hash" : " ^1.1.0" ,
1011 "through" : " ^2.3.7"
You can’t perform that action at this time.
0 commit comments