-
Notifications
You must be signed in to change notification settings - Fork 50
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
Enable faster development loop #197
Comments
A few things to consider:
|
Could someone point me to the compiler option to skip DCE? I'm not seeing it under This is 15 seconds on master (technically on #198, but that's close to equivalent and halogen-free). |
Maybe I'm remembering a bygone era, or maybe I'm remembering a pulp option. If it's not in the help for |
I think you might be thinking of a pulp option; |
I agree. I think it's acceptable to use Webpack for the development workflow -- as far as bundlers go it's damn near standard and it's not going anywhere. We can still build and ship via stock tooling. |
Webpack is damn near standard, but at the same time it's the source of a huge amount of grief. I'm still not sure how I feel about this. |
What about adding that option for |
@milesfrain Do you have an opinion? Would that enable the faster development loop you're envisioning? |
The options:
|
I would really love ES modules with no bundler at all, although we can discuss the merits of that approach versus ES modules with Snowpack when that's closer to being a reality. I suppose that since we do have a clear path to getting rid of Webpack (i.e. wait until ES modules are a thing) and that the initial work has already been done, using Webpack in the meantime should probably be fine. |
That sounds like a good plan: use Webpack for now, with an issue and the understanding that we will remove it when the compiler supports ES Modules. |
Is this still an issue? Running |
I think Miles was looking for something more like hot module replacement while doing development, supported by webpack, vite, etc. |
Now that ES modules have shipped, maybe it’d be worth looking into snowpack? |
Snowpack is no longer maintained and they recommend Vite as an alternative |
The current development workflow with
spago bundle-app
adds a 15-second delay (on my system) between making changes and seeing the results in your browser.There are other strategies to achieve near-instant page refreshes with saved changes, such as with webpack in #187 and #192.
The text was updated successfully, but these errors were encountered: