document cache option for babel-register (#5440) [skip ci]

This commit is contained in:
Patrick Williams 2017-03-23 08:44:44 -07:00 committed by Henry Zhu
parent 796d497ea1
commit 0cd541b7d8

View File

@ -66,7 +66,10 @@ require("babel-register")({
// Setting this will remove the currently hooked extensions of .es6, `.es`, `.jsx`
// and .js so you'll have to add them back if you want them to be used again.
extensions: [".es6", ".es", ".jsx", ".js"]
extensions: [".es6", ".es", ".jsx", ".js"],
// Setting this to false will disable the cache.
cache: true
});
```