add wasm.fallback module (#369)

This commit is contained in:
PP 2023-06-21 16:09:53 +08:00 committed by GitHub
parent dbc64aaa87
commit 680cd32d00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 0 deletions

View File

@ -6,6 +6,14 @@ declare module 'external:emscripten/*.wasm' {
export default wasmPath; export default wasmPath;
} }
declare module 'external:emscripten/*.wasm.fallback' {
/**
* This is a wasm fallback url relative from build output chunk.
*/
const wasmFallbackPath: string;
export default wasmFallbackPath;
}
declare module 'external:emscripten/*.js.mem' { declare module 'external:emscripten/*.js.mem' {
/** /**
* This is a js.mem url relative from build output chunk. * This is a js.mem url relative from build output chunk.

View File

@ -6,6 +6,10 @@ declare module 'external:emscripten/spine/spine.wasm.js' {
export default SpineWasm; export default SpineWasm;
} }
declare module 'external:emscripten/spine/spine.wasm.fallback.js' {
export default SpineWasm;
}
// tslint:disable // tslint:disable
declare function SpineWasm (moduleOptions?: any): Promise<void>; declare function SpineWasm (moduleOptions?: any): Promise<void>;

Binary file not shown.

File diff suppressed because one or more lines are too long