diff options
Diffstat (limited to 'node_modules/require-precompiled/index.js')
-rw-r--r-- | node_modules/require-precompiled/index.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/node_modules/require-precompiled/index.js b/node_modules/require-precompiled/index.js deleted file mode 100644 index 3e6f18a69..000000000 --- a/node_modules/require-precompiled/index.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; -module.exports = install; - -function install(precompile, ext, extensions) { - ext = ext || '.js'; - extensions = extensions || require.extensions; - - var oldExtension = extensions[ext]; - - extensions[ext] = function (module, filename) { - var source = precompile(filename); - if (source) { - module._compile(source, filename); - return; - } - oldExtension(module, filename); - }; -} |