Skip to content

Commit

Permalink
Merge pull request #190 from smmccabe/patch-1
Browse files Browse the repository at this point in the history
Correct module check to not throw an error
  • Loading branch information
yannbf committed Dec 1, 2023
2 parents 90597f0 + bae635b commit 369a889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/storybook-addon-designs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Config } from "./config";
*/
export const config = (c: Config | Config[]) => c;

if (module && module.hot && module.hot.decline) {
if (typeof module !== "undefined" && module.hot && module.hot.decline) {
module.hot.decline();
}

Expand Down

0 comments on commit 369a889

Please sign in to comment.