Skip to content

Commit dc3a0ec

Browse files
Replace findup by @choojs/findup (#153)
@choojs/findup is a fork of findup that removes the `colors` dependency. `colors` adds lots of properties to the String prototype, which was causing big slowdowns in bankai. About 300ms was spent calling `colors` getters that were never expected to be there (mostly by clean-css).
1 parent e2caac8 commit dc3a0ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"css-modules"
2222
],
2323
"dependencies": {
24+
"@choojs/findup": "^0.2.0",
2425
"acorn-node": "^1.3.0",
2526
"fast-json-parse": "^1.0.2",
26-
"findup": "^0.1.5",
2727
"insert-css": "^2.0.0",
2828
"map-limit": "0.0.1",
2929
"postcss": "^5.0.10",

transform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ const cssResolve = require('style-resolve').sync
22
const transformAst = require('transform-ast')
33
const staticEval = require('static-eval')
44
const parse = require('fast-json-parse')
5+
const findup = require('@choojs/findup')
56
const mapLimit = require('map-limit')
67
const through = require('through2')
7-
const findup = require('findup')
88
const xtend = require('xtend')
99
const path = require('path')
1010
const fs = require('fs')

0 commit comments

Comments
 (0)