-
Notifications
You must be signed in to change notification settings - Fork 77
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
Downloading a REPL includes some weird HMR stuff #370
Comments
The compiled version of So that's a bug in svelte-loader, but kind of an edge case, and there's something else going on. The loader shouldn't even be trying to add hot module reloading to anything when making a production build of the site. The loader is run with the options Bluh. I hope this comment is marginally more digestible than the issue I set out to investigate. This doesn't seem to be a simple bug, as there are multiple entities who are probably not doing what they're supposed to be doing. cc @mrkishi who I believe mentioned the half-dev/half-prod build issue, and cc @ekhaled who implemented svelte-loader's HMR feature. Once we get this sorted out here, we should also revisit the |
That's weird as hot loader should not be activated when https://github.com/sveltejs/svelte-loader/blob/master/index.js#L114 maybe the config is being ignored somehow? A surefire way would be to add |
The code responsible for what's being seen in this issue is not run on the server. The zip file is generated completely on the client side. So that's not the problem. If I set I'm not actually sure where minification is handled - I don't see it mentioned in the config - but apparently Is there or was there ever a Do you happen to know what conventions there are surrounding when |
There is a However, the hot loader works regardless of whether Webpack used to have I'm not not sure whether it's still the case for webpack 4 |
Pushed a temporary fix to address this on production, but leaving this issue open as there's more to investigate. And, once we're satisfied, we should make the same changes in sapper-template. |
I just downloaded a REPL example and the main.js included this:
I have no freaking idea where that's coming from.
The text was updated successfully, but these errors were encountered: