-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
I want vite build lib/app support out not bundle js,d.ts. #9629
Comments
Would you add a example of input files and output files? Maybe you are looking for #4530 or |
yes, preserveModules. support out not bundle js. But how to make d.ts? |
Vite uses esbuild to transpile Typescript into Javascript and esbuild does not do any type checking nor declaration output. You'll need to do that in an additional step: |
yeah ,I find two way can support d.ts:
vite-plugin-dts can work on app mode, not only on lib mode. |
Closing as this is solved. |
Description
As a Web Components UI Lib developer using Vite,I want Vite support out not bundle js,d.ts.
Because I want UI Lib componets and utils is not bundle es module.
if vite build app support out not bundle js,d.ts,it is more ok,my demo project with lib, no need lib config
Suggested solution
vite build --nobundle
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: