FredKSchott / esm-hmr

a Hot Module Replacement (HMR) API for your ESM-based dev server.
MIT License
413 stars 11 forks source link

hmr doesnt work on gitpod #12

Closed popuguytheparrot closed 4 years ago

popuguytheparrot commented 4 years ago

Hi.

I try to use snowpack 2 on gitpod and can't set HMR_WEBSOCKET_URL

FredKSchott commented 4 years ago

You should be able to set window.HMR_WEBSOCKET_URL = '...' anywhere in your entrypoint HTML file.

But if gitpod doesn't support HMR, then we should add a devOptions.hmr option to turn this on/off for environments that don't support it.

FredKSchott commented 4 years ago

Moving to https://github.com/pikapkg/snowpack/issues/377