Skip to content
This repository was archived by the owner on May 18, 2021. It is now read-only.

Handle when no window or document (nodejs runtime)#10

Open
GlenHughes wants to merge 1 commit intorapid7:masterfrom
GlenHughes:nodjs-gatsbyjs-compatibility
Open

Handle when no window or document (nodejs runtime)#10
GlenHughes wants to merge 1 commit intorapid7:masterfrom
GlenHughes:nodjs-gatsbyjs-compatibility

Conversation

@GlenHughes
Copy link

Hello,

Unfortunately, as your package uses window and document which in the GatsbyJS world at build time doesn't exist as it's in Node and not in a browser its breaking builds.

This PR performs a simple check to make sure window and document actually exists before trying to use them.

Any questions let me know :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant