Skip to content

Commit

Permalink
Debugging HTML Builds - fix copy&paste error (gatsbyjs#3565)
Browse files Browse the repository at this point in the history
the point of the code-demo is that if we wrap the module it does not fail
  • Loading branch information
zionis137 authored and jastack committed Jan 24, 2018
1 parent 878f821 commit 6e6933a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/debugging-html-builds.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const module = require("module"); // Error

// Wrap the require in check for window
if (typeof window !== `undefined`) {
const module = require("module"); // Error
const module = require("module");
}
```

Expand Down

0 comments on commit 6e6933a

Please sign in to comment.