From 0f3e1aa03247c93b9cfc44990c6b47dea5d6f3a3 Mon Sep 17 00:00:00 2001 From: Wojciech Kwolek Date: Sun, 26 Feb 2017 00:14:34 +0100 Subject: [PATCH] Documented `output.strictModuleExceptionHandling` --- content/configuration/output.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/content/configuration/output.md b/content/configuration/output.md index 05368eda405a..f76c3a1dc25a 100644 --- a/content/configuration/output.md +++ b/content/configuration/output.md @@ -6,6 +6,7 @@ contributors: - skipjack - tomasAlabes - mattce + - irth --- The top-level `output` key contains set of options instructing webpack on how and where it should output your bundles, assets and anything else you bundle or load with webpack. @@ -526,6 +527,17 @@ Note by default an empty string is used. Using some kind of indention makes bund There is no need to change it. +## `output.strictModuleExceptionHandling` + +`boolean` + +Tell webpack to remove a module from cache if it throws an exception when it is `require`d. + +It defaults to `false` for performance reasons. + +When set to `false`, the module is not removed from cache, which results in the exception getting thrown only on the first `require` call (making it incompatible with node.js). + + ## `output.umdNamedDefine` `boolean`