Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rewire.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundlers/webpack/webpackPostProcessor.js')
-rw-r--r--lib/bundlers/webpack/webpackPostProcessor.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/bundlers/webpack/webpackPostProcessor.js b/lib/bundlers/webpack/webpackPostProcessor.js
deleted file mode 100644
index ee10c40..0000000
--- a/lib/bundlers/webpack/webpackPostProcessor.js
+++ /dev/null
@@ -1,24 +0,0 @@
-"use strict"; // run code in ES5 strict mode
-
-var path = require("path"),
-
- rewireLibIndex = path.join("rewire", "lib", "index.js");
-
-/**
- * Gets called before each module is loaded.
- * This function ensures that lib/bundlers/webpack/webpackRewire.js is returned instead of lib/index.js.
- *
- * The callback gets called with (null, filename)
- *
- * @param {!String} filename
- * @param {!Function} callback
- */
-function webpackPostProcessor(filename, callback) {
- if (filename.indexOf(rewireLibIndex) !== -1) {
- filename = __dirname + "/webpackRewire.js";
- }
-
- callback(null, filename);
-}
-
-module.exports = webpackPostProcessor; \ No newline at end of file