UNPKG

637 BMarkdownView Raw
1# fbjs-scripts
2
3This is a collection of tools and scripts intended to be used in conjunction with `fbjs`. Previously these were shipped as a part of `fbjs`.
4
5```js
6// before (fbjs@0.1.0)
7var invariant = require('fbjs/lib/invariant');
8var devExpression = require('fbjs/scripts/babel/dev-expression');
9
10// after (fbjs, fbjs-scripts@0.2.0)
11var invariant = require('fbjs/lib/invariant');
12var devExpression = require('fbjs-scripts/babel/dev-expression');
13```
14
15## Why?
16
17This ensures that production code consuming `fbjs` library code does not need to install script dependencies, unless you explicitly use them via the `fbjs-scripts` package.