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

transform not called #4

Open
luckylooke opened this issue May 8, 2023 · 1 comment
Open

transform not called #4

luckylooke opened this issue May 8, 2023 · 1 comment

Comments

@luckylooke
Copy link

Hi it seems that transform callback is not called at all.
Reproduciton:
https://codesandbox.io/p/sandbox/hello-vite-forked-lbngnq

Thx :)

@gluck
Copy link
Member

gluck commented May 9, 2023

Hi @luckylooke , the vite version used in your sandbox is pretty outdated (1.0.0-rc9), you should give a try with a more recent one (v2+).
That being said, the transform code is indeed only called during dev (verified on your sandbox after vite upgrade), and not during build, as I didn't have a use for the later.

Feel free to contribute if you need it, seems logical to me that it'd apply to both dev & build.

Thanks.

Let me know if you do

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

2 participants