Skip to content

Commit 21b4568

Browse files
committed
added promise-polyfill for compatibility with older versions of node
1 parent 75c79b9 commit 21b4568

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
if (!global.Promise) { global.Promise = require('promise-polyfill'); }
2+
13
var fs = require('fs');
24
var path = require('path');
35
var through = require('through');

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"dependencies": {
77
"css-modules-loader-core": "^1.0.0",
88
"object-assign": "^3.0.0",
9+
"promise-polyfill": "^2.1.0",
910
"string-hash": "^1.1.0",
1011
"through": "^2.3.7"
1112
},

0 commit comments

Comments
 (0)