Skip to content
New issue

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

Ensure all modules are pure modules #23

Merged
merged 1 commit into from
May 7, 2020
Merged

Ensure all modules are pure modules #23

merged 1 commit into from
May 7, 2020

Conversation

philipwalton
Copy link
Member

Fixes #20

This PR updates all modules to be "pure" modules, i.e. it ensures all browser-related side effects are not run until initialized. This should allow all web-vitals modules to be require()-ed in node during SSR without error.

@philipwalton philipwalton merged commit 374e5a7 into master May 7, 2020
@philipwalton philipwalton deleted the pure-modules branch May 7, 2020 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Next.js: SyntaxError: Unexpected token 'export'
1 participant