9ece92ed0f
This change requires some modifications to the dart2wasm flags for dynamic module support. Previously, we determined that dynamic module support was needed if `--dynamic-main-module` was passed. We determined that the main module was being compiled if `--dynamic-interface-uri` was also passed, and a submodule (AKA "dynamic module") otherwise. This design prevented us from passing the interface specification to the dynamic module validator when submodules were being compiled. Instead, we now build with dynamic support when the `--dynamic-module-type` flag is passed. Allowable values are `main` and `submodule`. Both the main module URI and interface URI are currently required for both dynamic module types. (The main module URI could be made optional if we generated a default filename like we do for dynamic module metadata.) Dynamic interface validation is enabled by default and is controlled by the `--validate-dynamic-modules` flag. This flag can be negated via `--validate-dynamic-modules=false` or `--no-validate-dynamic-modules`. Change-Id: I3165c3a8255205a61c3ccfe546f5d436472ed0d9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/425154 Reviewed-by: Nate Biggs <natebiggs@google.com> Reviewed-by: Ömer Ağacan <omersa@google.com>
This package contains experimental dynamic modules API.
Status: experimental
NOTE: This package is currently experimental and not published or included in the SDK.
Do not take dependency on this package unless you are prepared for breaking changes and possibly removal of this code at any point in time.