document cache option for babel-register #5440

This commit is contained in:
Sven SAULEAU 2017-04-08 10:16:55 +02:00
parent e9bc213b14
commit c1b3740707
No known key found for this signature in database
GPG Key ID: 7C3212582FBA1BA2

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
});
```