Inqnuam / esbuild-plugin-umd-wrapper

UMD wrapper for esbuild
19 stars 2 forks source link

Output default directly #5

Closed dy closed 4 months ago

dy commented 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?