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 support for HMR with elm-hot #2378
Conversation
* handle empty config && asset files * remove bad empty asset solution
Don’t use “last 2 versions”. See https://jamie.build/last-2-versions
The field is deprecated and replaced with package.module. Additionally it caused many issues with packages that used it incorrectly. Fixes parcel-bundler#844, parcel-bundler#1037, parcel-bundler#1048, parcel-bundler#1062.
This prevents EMFILE errors on large projects caused by running out of file descriptors.
* update postcss and deps * lock down bsb-js to 1.0.2 to fix node v6 * Update package.json
As toml is an abandoned package, switch to @iarna/toml for implementation of the latest toml spec (v0.5.0). Also remove tomlify-j0.4, as @iarna/toml supports encoding and decoding. Resolves parcel-bundler#2258.
It also probably needs elm-hot dependency? :) |
Doesn't |
Ah, could be. I wonder why no tests ran via CI. |
@DeMoorJasper thank you, I've added it. I'm not sure what the status is on 1.x vs 2.x, if the 1.x branch isn't developed anymore I'd be happy to rebase onto 2.x. |
@ktosiek v1.x is still being actively developed and maintained. However the core team is currently mainly focusing on v2.x afaik.
|
@ktosiek I just saw why the tests aren't running, the v1.x branch is a backup of master before the monorepo. The master branch is the new v1.x branch Could you rebase this on the master branch? |
Sure! I've assumed master is 2.x, because of the amount of changes :-) |
I'm not sure what happened here, I've opened #2388 in place of this one. |
↪️ Pull Request
This PR adds integration with elm-hot - the HMR solution for Elm (at least I don't know about any other :-)). I've published this code before as a plugin, and after a suggestion from @domenkozar decided it would make more sense upstream.
💻 Examples
This will help when editing the app without changing the type of the app's model. Visual tweaks or testing the update logic should be much easier with working HMR.
🚨 Test instructions
Editing an Elm app (like changing a string) should cause the changes to be applied, without refreshing the page or changing the app's state.
✔️ PR Todo