Skip to content

Commit

Permalink
example: enable wasm runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Nov 11, 2024
1 parent 4a7cf7a commit af79553
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
23 changes: 23 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This is JUST for the example!
# See https://github.com/dart-lang/build/tree/master/build_web_compilers#configuration
targets:
$default:
builders:
build_web_compilers|dart2js_archive_extractor:
options:
filter_outputs: false
build_web_compilers|entrypoint:
generate_for:
- example/**.dart
options:
compilers:
dart2wasm:
args:
- -O4
- --no-strip-wasm
dart2js:
args:
- --stage=dump-info-all
- --no-source-maps
- --show-package-warnings
- -O4
10 changes: 0 additions & 10 deletions peanut.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
# Configuration for https://pub.dev/packages/peanut
directories:
- example

builder-options:
build_web_compilers|entrypoint:
dart2js_args:
- --stage=dump-info-all
- --no-frequency-based-minification
- --no-source-maps
- -O4
build_web_compilers|dart2js_archive_extractor:
filter_outputs: false
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:

dev_dependencies:
build_runner: ^2.2.1
build_web_compilers: ^4.0.8
build_web_compilers: ^4.1.0-beta.3
dart_flutter_team_lints: ^3.0.0
stream_transform: ^2.0.0
test: ^1.21.6
Expand Down

0 comments on commit af79553

Please sign in to comment.