import { requireEnsure } from './requireEnsure' ; import './hook' ; import { IBundleOption } from './type' ; param option returns export async function loadBundle < T > ( option ) { return await requireEnsure < T > ( option ) ; } export async function loadScriptsWithContext < T > ( option ) { return await requireEnsure < T > ( { ... option , id : `${ option . id }_scripts_` , noCache : true , } ) ; }