-
-
Notifications
You must be signed in to change notification settings - Fork 944
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
Optimize wasm bindgen asset with manganis #3531
base: main
Are you sure you want to change the base?
Conversation
@@ -7,7 +7,7 @@ description = "CLI for building fullstack web, desktop, and mobile apps with a s | |||
repository = "https://github.com/DioxusLabs/dioxus/" | |||
license = "MIT OR Apache-2.0" | |||
keywords = ["mobile", "gui", "cli", "dioxus", "wasm"] | |||
rust-version = "1.79.0" | |||
rust-version = "1.81.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
swc requires a newer version of rust to build. I'm not sure how much we care about the rust version the CLI requires since we are leaning into binstall everywhere, but if this an issue I could look for alternatives
Marking this as a draft until we find the latest version of swc settings that are compatible with a broader set of javascript like #3539 |
This PR also fixes a few caching issues with manganis/the CLI:
|
This PR uses the manganis bundling system to hash and optimize the assets wasm bindgen generates. It also expands cli-opt to support bundling multiple js files together which is useful for the javascript files wasm bindgen outputs.
Requests for hello world app with old version of DX:
Requests for hello world app with new version of DX:
Closes #3350
Closes #3339
Closes #3278
Closes #3277
Closes #2124