File tree Expand file tree Collapse file tree 6 files changed +226
-110
lines changed Expand file tree Collapse file tree 6 files changed +226
-110
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,7 @@ jobs:
221
221
npm ci
222
222
npm install -D @playwright/test
223
223
npx playwright install --with-deps
224
+ rm -rf ./target/dx
224
225
npx playwright test
225
226
- uses : actions/upload-artifact@v4
226
227
if : always()
Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ jobs:
112
112
checksum : sha256
113
113
manifest_path : packages/cli/Cargo.toml
114
114
ref : refs/tags/${{ env.RELEASE_POST }}
115
- features : optimizations
116
115
zip : " all"
117
116
118
117
# todo: these things
Original file line number Diff line number Diff line change @@ -154,13 +154,6 @@ tokio-console = ["dep:console-subscriber"]
154
154
bundle = []
155
155
no-downloads = []
156
156
157
- # when releasing dioxus, we want to enable wasm-opt
158
- # and then also maybe developing it too.
159
- # making this optional cuts workspace deps down from 1000 to 500, so it's very nice for workspace adev
160
- optimizations = [" wasm-opt" , " asset-opt" ]
161
- asset-opt = []
162
- wasm-opt = [" dep:wasm-opt" ]
163
-
164
157
[[bin ]]
165
158
path = " src/main.rs"
166
159
name = " dx"
Original file line number Diff line number Diff line change @@ -3210,8 +3210,7 @@ impl BuildRequest {
3210
3210
//
3211
3211
// We leave demangling to false since it's faster and these tools seem to prefer the raw symbols.
3212
3212
// todo(jon): investigate if the chrome extension needs them demangled or demangles them automatically.
3213
- let will_wasm_opt = ( self . release || self . wasm_split )
3214
- && ( self . workspace . wasm_opt . is_some ( ) || cfg ! ( feature = "optimizations" ) ) ;
3213
+ let will_wasm_opt = self . release || self . wasm_split ;
3215
3214
let keep_debug = self . config . web . wasm_opt . debug
3216
3215
|| self . debug_symbols
3217
3216
|| self . wasm_split
@@ -3259,7 +3258,7 @@ impl BuildRequest {
3259
3258
3260
3259
if !will_wasm_opt {
3261
3260
return Err ( anyhow:: anyhow!(
3262
- "Bundle splitting requires wasm-opt to be installed or the CLI to be built with `--features optimizations`. Please install wasm-opt and try again ."
3261
+ "Bundle splitting should automatically enable wasm-opt, but it was not enabled ."
3263
3262
)
3264
3263
. into ( ) ) ;
3265
3264
}
You can’t perform that action at this time.
0 commit comments