Skip to content

Commit

Permalink
fix: Add missing getModuleEvaluationSideEffectsState
Browse files Browse the repository at this point in the history
It looks like webpack can expect this method to be defined in certain
cases.

Related to storybookjs/storybook#15221.
  • Loading branch information
bebraw committed Jun 18, 2021
1 parent 31ce4e8 commit bb8fd0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dependency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit bb8fd0f

Please sign in to comment.