Skip to content

Commit

Permalink
add allowUnresolvedImports (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc authored Dec 29, 2023
1 parent 85a13cc commit bfef4cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export type SetupOption = {
maxMemoryBlockCount?: number
resume?: boolean | HexString | number
runtimeLogLevel?: number
allowUnresolvedImports?: boolean
}

export type SetupConfig = Config & {
Expand All @@ -43,6 +44,7 @@ export const createConfig = ({
maxMemoryBlockCount,
resume,
runtimeLogLevel,
allowUnresolvedImports,
}: SetupOption): SetupConfig => {
// random port if not specified
port = port ?? Math.floor(Math.random() * 10000) + 10000
Expand All @@ -58,6 +60,7 @@ export const createConfig = ({
'wasm-override': wasmOverride,
timeout,
resume: resume ?? false,
'allow-unresolved-imports': allowUnresolvedImports,
}
return config
}
Expand Down

0 comments on commit bfef4cf

Please sign in to comment.