From fe965fc89463897b4f397aa12a61357d52f228a9 Mon Sep 17 00:00:00 2001 From: Bo Borgerson Date: Fri, 4 Mar 2016 16:02:50 -0800 Subject: [PATCH] Add __CACHE__ as a supported module tag Just 'cause, you know... it might be useful. Wouldn't be necessary if #12 were done, but this is way faster. --- packages/react-server-gulp-module-tagger/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-server-gulp-module-tagger/index.js b/packages/react-server-gulp-module-tagger/index.js index 83436a50f..efc118b11 100644 --- a/packages/react-server-gulp-module-tagger/index.js +++ b/packages/react-server-gulp-module-tagger/index.js @@ -5,7 +5,7 @@ var replace = require("gulp-replace") // - "__LOGGER__" // - "__LOGGER__({ /* options */ })" var isWindows = ('win32' === process.platform) -, REPLACE_TOKEN = /(?:__LOGGER__|__CHANNEL__)(?:\(\s*(\{[\s\S]*?\})\s*\))?/g +, REPLACE_TOKEN = /(?:__LOGGER__|__CHANNEL__|__CACHE__)(?:\(\s*(\{[\s\S]*?\})\s*\))?/g , THIS_MODULE = isWindows ? /(?:[^\\]+\\node_modules\\)?react-server-gulp-module-tagger\\index\.js$/ : /(?:[^\/]+\/node_modules\/)?react-server-gulp-module-tagger\/index\.js$/