Replies: 2 comments
This comment has been hidden.
This comment has been hidden.
-
Vite uses esbuild to compiles TypeScript into JavaScript in both dev and build. Compilers that supports TypeScript other than |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I know that
esbuild
is used in the development environment. It is unable to obtain metadata. But why does it still return undefined after packaging? The build usesrollup
and should be able to retrieve metadata.Reproduction
https://stackblitz.com/edit/vitejs-vite-houu9v?file=vite.config.ts,src%2Fmain.ts,tsconfig.json,src%2Findex.html&terminal=dev
Steps to reproduce
npm run build, Then replace './main.ts' with '../dist/player.js' in src/index.html. Finally, run on the local computer.
System Info
Used Package Manager
pnpm
Logs
No response
Validations
Beta Was this translation helpful? Give feedback.
All reactions