Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get file reference after emitFile? #256

Open
mayank99 opened this issue Jan 7, 2023 · 2 comments
Open

how to get file reference after emitFile? #256

mayank99 opened this issue Jan 7, 2023 · 2 comments

Comments

@mayank99
Copy link

mayank99 commented Jan 7, 2023

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).

emitFile: (emittedFile: EmittedAsset) => void

Is there a different way to get the referenceId?

@ilteoood
Copy link

ilteoood commented Jan 8, 2023

emitFile seems to work with both vite and rollup, but with webpack the result is undefined.

@lishaobos
Copy link

same question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants