Skip to content

Commit 6ff4db2

Browse files
committed
Update fluent-react README wrt. compat builds
1 parent 0cb08d7 commit 6ff4db2

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

fluent-react/README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,15 @@ version of Babel's [latest preset][]:
3939
import 'fluent-react/compat';
4040
```
4141

42-
In some cases, using the `compat` build may be needed even if you target modern
43-
browsers. For instance, the `create-react-app` boilerplate uses UglifyJS to
44-
minify its files. As of April 2017, UglifyJS doesn't support some of the new
45-
JavaScript syntax features. By using the `compat` build of all `fluent`
46-
packages you can ensure that the minifiction works properly.
42+
In some cases, using the `compat` build may be needed even if you target
43+
modern browsers. For instance, the [`create-react-app` boilerplate uses
44+
UglifyJS to minify its files][create-react-app-minify]. As of November 2017,
45+
UglifyJS doesn't support some of the new JavaScript syntax features. By using
46+
the `compat` build of all `fluent` packages you can ensure that the
47+
minifiction works properly.
48+
49+
50+
[create-react-app-minify]: https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-build-fails-to-minify
4751

4852

4953
## Learn more

fluent-react/examples/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ These tiny React apps demonstrate how `fluent-react` can integrate with React.
55
cd hello-world
66
npm install
77
npm start
8+
9+
All examples link to the local ES2015+ `fluent` modules as dependencies. They
10+
are resolved via the `module` field of their `package.json` files and thus do
11+
not require to be built nor transpiled beforehand.

0 commit comments

Comments
 (0)