From 272f99c99c2df9812522c9ddf6758cd5d3a646bf Mon Sep 17 00:00:00 2001 From: Matt McFarland Date: Wed, 26 Aug 2015 18:26:13 -0400 Subject: [PATCH] Enable lessify transform (compatability) [Per the Browserify Handbook](https://github.com/substack/browserify-handbook#browserifytransform-field) - Since you are using less and react, it makes good sense to use lessify in the package.json just for the sake of optimal compatibility. Without adding this simple line of code, developers and engineers who are using browserify cannot transform the less files when using package.json. For the time being, I've had to copy the less files from react-select to my src directory. However, if you put at least "lessify" in as a transform, reat-select will work for all of us who are using lessify as a transform in our package.json. --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index 815302aea0..6d9c6f6548 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,11 @@ "peerDependencies": { "react": ">=0.13.3 || ^0.14.0-beta3" }, + "browserify": { + "transform": [ + "lessify" + ] + }, "browserify-shim": { "classnames": "global:classNames", "react": "global:React",