Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Plugins/PackageToJS/Templates/instantiate.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ import { SwiftRuntime } from "./runtime.js"
export const MODULE_PATH = "@PACKAGE_TO_JS_MODULE_PATH@";
/* #if USE_SHARED_MEMORY */
export const MEMORY_TYPE = {
// @ts-ignore
// @ts-expect-error Substituted by PackageToJS preprocessor
initial: import.meta.PACKAGE_TO_JS_MEMORY_INITIAL,
// @ts-ignore
// @ts-expect-error Substituted by PackageToJS preprocessor
maximum: import.meta.PACKAGE_TO_JS_MEMORY_MAXIMUM,
// @ts-ignore
// @ts-expect-error Substituted by PackageToJS preprocessor
shared: import.meta.PACKAGE_TO_JS_MEMORY_SHARED,
}
/* #endif */

/* #if HAS_BRIDGE */
// @ts-ignore
// @ts-expect-error Substituted by PackageToJS preprocessor
import { createInstantiator } from "./bridge-js.js"
/* #else */
/**
Expand Down