unplugin
unplugin copied to clipboard
how to get file reference after `emitFile`?
emitFile is supposed to a return a referenceId which can be used to import/export the file in other files.
unplugin seems to not return anything (even the typescript type is void).
https://github.com/unjs/unplugin/blob/61feea6f30cd5f1bfde420212e75410b63d293ee/src/types.ts#L22
Is there a different way to get the referenceId?
emitFile seems to work with both vite and rollup, but with webpack the result is undefined.
same question
Bumping this. I also want this API