2021-01-31 12:50:12 -08:00
|
|
|
targets:
|
2022-06-28 05:47:32 -07:00
|
|
|
# This setup exists so that the main entrypoint (web/main.dart) gets compiled
|
|
|
|
# with dartdevc for debug builds while the worker is compiled with dart2js
|
|
|
|
# (since workers don't support the JS moduled emitted by dartdevc).
|
|
|
|
# In release builds (`--release` on the CLI), both entrypoints are compiled
|
|
|
|
# with dart2js.
|
|
|
|
#
|
|
|
|
# If you're ok with compiling everything with dart2js, just use
|
|
|
|
# `compiler: dartj2s` on the options of the default target and ignore the two
|
|
|
|
# additional targets here.
|
|
|
|
dart2js_archives:
|
|
|
|
auto_apply_builders: false
|
|
|
|
dependencies: [":$default", ":worker"]
|
|
|
|
builders:
|
|
|
|
build_web_compilers:dart2js_archive_extractor:
|
|
|
|
enabled: true
|
2022-04-01 14:42:52 -07:00
|
|
|
worker:
|
|
|
|
auto_apply_builders: false
|
|
|
|
dependencies: [":$default"]
|
|
|
|
builders:
|
2022-06-28 05:47:32 -07:00
|
|
|
build_web_compilers:entrypoint:
|
2022-04-01 14:42:52 -07:00
|
|
|
enabled: true
|
|
|
|
generate_for:
|
2022-06-28 05:47:32 -07:00
|
|
|
- web/worker.dart
|
2022-04-01 14:42:52 -07:00
|
|
|
options:
|
|
|
|
compiler: dart2js
|
2022-06-28 05:47:32 -07:00
|
|
|
build_web_compilers:dart2js_archive_extractor:
|
|
|
|
enabled: false
|
2022-04-01 14:42:52 -07:00
|
|
|
|
2021-01-31 12:50:12 -08:00
|
|
|
$default:
|
|
|
|
builders:
|
2021-10-08 14:33:39 -07:00
|
|
|
drift_dev:
|
2021-01-31 12:50:12 -08:00
|
|
|
options:
|
|
|
|
named_parameters: true
|
2022-06-28 05:47:32 -07:00
|
|
|
build_web_compilers:entrypoint:
|
2022-04-01 14:42:52 -07:00
|
|
|
generate_for:
|
|
|
|
# This one is compiled in the other target
|
|
|
|
exclude:
|
|
|
|
- "web/worker.dart"
|
2022-06-28 05:47:32 -07:00
|
|
|
# We have a designated target for this step.
|
|
|
|
build_web_compilers:dart2js_archive_extractor:
|
|
|
|
enabled: false
|