From bb8fd0f9b9dd5af66b068444a64ea4a1bf2640a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juho=20Veps=C3=A4l=C3=A4inen?= Date: Fri, 18 Jun 2021 05:31:20 +0300 Subject: [PATCH] fix: Add missing getModuleEvaluationSideEffectsState It looks like webpack can expect this method to be defined in certain cases. Related to https://github.com/storybookjs/storybook/issues/15221. --- src/dependency.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dependency.ts b/src/dependency.ts index 6d9d67a..0e0bbe7 100644 --- a/src/dependency.ts +++ b/src/dependency.ts @@ -18,6 +18,10 @@ class DocGenDependency extends NullDependency { this.codeBlock = codeBlock; } + getModuleEvaluationSideEffectsState(): boolean { + return false; + } + updateHash: webpack.dependencies.NullDependency["updateHash"] = (hash) => { hash.update(this.codeBlock); };