vite-plugin-virtual icon indicating copy to clipboard operation
vite-plugin-virtual copied to clipboard

Allow loading virtual module defined by an async function

Open jacquev6 opened this issue 7 months ago • 0 comments

I think changing load(id: string) to async load(id: string) on line 63 and adding a line module = await module between lines 69 and 70 would allow loading virtual modules defined by async functions. And I think it would not break anything else.

Sorry for not opening a PR; I'm in a hurry :) Thanks for this very useful plugin!

jacquev6 avatar May 10 '25 12:05 jacquev6