Skip to content

Commit

Permalink
[wasm] clarify that JS is still complied, even with the --wasm flag (#…
Browse files Browse the repository at this point in the history
…10593)

Co-authored-by: Parker Lougheed <[email protected]>
  • Loading branch information
2 people authored and sfshaza2 committed May 14, 2024
1 parent 3ccecee commit e18f7df
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/content/platform-integration/web/wasm.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,14 @@ flutter build web --wasm
```

The command produces output into the `build/web` directory relative to the
package root.
package root, just like `flutter build web`.

:::note
Even with the `--wasm` flag, `flutter build web` will still compile the
application to JavaScript. If WasmGC support is not detected at runtime,
the JavaScript output is used so the application will continue to work across
browsers.
:::

### Serve the output with an HTTP server

Expand Down

0 comments on commit e18f7df

Please sign in to comment.