Skip to content

Commit

Permalink
updated schema for experimental wasm support
Browse files Browse the repository at this point in the history
  • Loading branch information
nikechukwu committed Aug 9, 2024
1 parent ce4b1f5 commit 0d3fb8e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/dart.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ extends "common.pkl"

import "common.pkl"

class SpurteDartWasmOptions {
/// The file that includes the import object
///
/// The import object here should be provided as a default export from the given file.
/// Support for using dart to export such import object is not yet implemented
importFile: String?

/// A file that can be used to make use of WASM exports, if any, from the module
///
/// If no wasm exports are made, then this file is not included in the build
exportFile: String?
}

class SpurteDartBuildOptions extends SpurteBuildOptions {
/// Whether to bundle the project with JS
///
Expand All @@ -27,6 +40,12 @@ class SpurteDartExperimentalOptions extends SpurteExperimentalOptions {
///
/// > **NOTE**: This option is experimental, and doesn't work at the moment
bundleWithTypes: Boolean?

/// WASM options
///
/// As of currently, these options only apply to Dart builds.
/// For more information on how to use wasm with dart, see https://dart.dev/web/wasm and https://chromium.googlesource.com/external/github.com/dart-lang/sdk/+/refs/tags/3.5.0-90.0.dev/pkg/dart2wasm/
wasm: SpurteDartWasmOptions?
}

class SpurteJSDartOptions extends SpurteJSSharedOptions {
Expand Down

0 comments on commit 0d3fb8e

Please sign in to comment.