Closed dy closed 4 months ago
I also found out that if I wrap export default function sprae(){} as umd with libraryName:'sprae', the resulting window.sprae is not a function but some module wrapper {__esModule:true, default:sprae}. Is there a way to make it a direct function?
export default function sprae(){}
libraryName:'sprae'
window.sprae
{__esModule:true, default:sprae}
I also found out that if I wrap
export default function sprae(){}
as umd withlibraryName:'sprae'
, the resultingwindow.sprae
is not a function but some module wrapper{__esModule:true, default:sprae}
. Is there a way to make it a direct function?