From 0cd541b7d8262b637fa802a1c25b79c3d8910cf6 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Thu, 23 Mar 2017 08:44:44 -0700 Subject: [PATCH] document cache option for babel-register (#5440) [skip ci] --- packages/babel-register/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/babel-register/README.md b/packages/babel-register/README.md index c19e260c40..413e7a6349 100644 --- a/packages/babel-register/README.md +++ b/packages/babel-register/README.md @@ -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 }); ```