We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q. We're using script.js and webpack to bundle for both the browser and node.js. What is the best approach here to provide a fallback?
Current, as expected, I get this error (as expected) -
var doc = document ^ ReferenceError: document is not defined
Which is from this code -
})('$script', function () { var doc = document
The text was updated successfully, but these errors were encountered:
document and head variables declaration only need to be moved to the create() function (so improt/require works in server side)
document
head
create()
Sorry, something went wrong.
No branches or pull requests
Q. We're using script.js and webpack to bundle for both the browser and node.js. What is the best approach here to provide a fallback?
Current, as expected, I get this error (as expected) -
Which is from this code -
The text was updated successfully, but these errors were encountered: