From 08fc0d0ca258cefa74e2a1af41f2588189791668 Mon Sep 17 00:00:00 2001 From: kpdecker Date: Sun, 9 Oct 2016 13:36:54 -0500 Subject: [PATCH] Add docs on hookRequire feature. --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 57f4d1d..c21cfeb 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,17 @@ require('source-map-support').install({ }); ``` +To support files with inline source maps, the `hookRequire` options can be specified, which will monitor all source files for inline source maps. + + +```js +require('source-map-support').install({ + hookRequire: true +}); +``` + +This monkey patches the `require` module loading chain, so is not enabled by default and is not recommended for any sort of production usage. + ## Demos #### Basic Demo