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
5 changes: 4 additions & 1 deletion src/core/builder/platforms/harmonyos-next/src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ export async function onAfterInit(this: IBuilder, options: IHarmonyOSNextInterna
// checkSDKEnv(options);
}

export function onAfterBundleInit(options: IHarmonyOSNextInternalBuildOptions) {
export async function onAfterBundleInit(options: IHarmonyOSNextInternalBuildOptions) {
// Preserve the native runtime target, especially for subclasses of JSB constructors.
await nativeCommonHook.onAfterBundleInit(options);

if (options.packages['harmonyos-next'].jsEngine === 'ARK') {
options.buildScriptParam.importMapFormat = 'esm';
}
Expand Down
Loading