Skip to content

Commit b3889a4

Browse files
committed
Pin postcss-calc to 6.0.1 for Node 4 support
1 parent eccefe1 commit b3889a4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

index.js

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ const cssnext = require('postcss-cssnext')
33
const imports = require('postcss-import')
44
const xtend = require('xtend')
55

6+
// Patch CSSNext features map to ensure Node v4 support
7+
const features = require('postcss-cssnext/lib/features').default
8+
features.calc = function calc (options) {
9+
return require('postcss-calc')(options)
10+
}
11+
612
module.exports = transform
713

814
function transform (filename, source, options, done) {

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"license": "MIT",
2424
"dependencies": {
2525
"postcss": "^6.0.17",
26+
"postcss-calc": "6.0.1",
2627
"postcss-cssnext": "^3.1.0",
2728
"postcss-import": "^11.0.0",
2829
"xtend": "^4.0.0"

0 commit comments

Comments
 (0)