You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all a big thanks for making such an awesome bundler. I use it daily and it works like a charm.
I recently stumbled on an issue, though. I have a monorepo containing two projects: a web app and a library. The library and app are both written in TypeScript, with the app depending on the library.
As far as I can tell, Vite has no mechanism to let it know that the source files of my library are in src/ while maintaining that build/index.js has to be used whenever bundling to production.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
First of all a big thanks for making such an awesome bundler. I use it daily and it works like a charm.
I recently stumbled on an issue, though. I have a monorepo containing two projects: a web app and a library. The library and app are both written in TypeScript, with the app depending on the library.
As far as I can tell, Vite has no mechanism to let it know that the source files of my library are in
src/
while maintaining thatbuild/index.js
has to be used whenever bundling to production.I could do something like this:
But that doesn't make any sense when shipping the package because NodeJS will try to import TypeScript files.
Is there any solution to this problem?
Beta Was this translation helpful? Give feedback.
All reactions