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

add isHMR flag to loadUrl, and default off on isSSR #1372

Merged
merged 1 commit into from
Oct 21, 2020

Conversation

FredKSchott
Copy link
Owner

@FredKSchott FredKSchott commented Oct 20, 2020

Changes

  • Added explicit isHMR option to loadUrl() JS API
  • Default to isHMR mode off when isSSR is true, since HMR isn't meant to run on the server
  • Deprecated an outdated run() plugin hook option. Now that SSR mode is on/off per file, this flag no longer tracks. We had already added isHmrEnabled to the build & transform functions.

Testing

  • Tests passing.

Docs

  • No docs changes needed (not even sure if this option had been documented).

@vercel
Copy link

vercel bot commented Oct 20, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pikapkg/snowpack/bxmkxq80u
✅ Preview: https://snowpack-git-loadurl-ishmr.pikapkg.vercel.app

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.

1 participant