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 · 3 comments
Open

how to get file reference after emitFile? #256

mayank99 opened this issue Jan 7, 2023 · 3 comments
Labels
enhancement New feature or request

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
Contributor

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

@deminearchiver
Copy link

Bumping this. I also want this API

@sxzz sxzz added the enhancement New feature or request label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants