Skip to content

Commit

Permalink
chore: Update rollup and change type for entry function
Browse files Browse the repository at this point in the history
  • Loading branch information
xdoardo committed Aug 6, 2024
1 parent e94ce1d commit ad91eb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion WasmerSDKBundled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ import wasm_bytes from "./pkg/wasmer_js_bg.wasm";
* Initialize the underlying WebAssembly module, defaulting to an embedded
* copy of the `*.wasm` file.
*/
export const init = async (initValue: WasmerInitInput): Promise<InitOutput> => {
export const init = async (initValue: WasmerInitInput | undefined): Promise<InitOutput> => {
if (!initValue) {
initValue = {}
}

if (!initValue.module) {
// @ts-ignore
initValue.module = await wasm_bytes();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@web/test-runner": "^0.18.0",
"prettier": "^3.1.0",
"rimraf": "^5.0.5",
"rollup": "^4.8.0",
"rollup": "^4.9.1",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-dts": "^6.1.0",
"typedoc": "^0.25.4",
Expand Down

0 comments on commit ad91eb5

Please sign in to comment.