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
Hi! 👋
I'm trying out unbuild for a monorepo project of mine, and found the idea of stubbing really nice!
From what I am seeing, stubbing uses jiti, and I was hoping that it would work correctly in a browser environment, but it seems to be using Node-specific functionality.
I am personally trying to consume the stub of my library in a vite app, and it should be able to ingest the library's source code as is, TypeScript and all. Is there an alternative to unbuild --stub that would essentially create an dist/index.mjs file with:
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! 👋
I'm trying out
unbuild
for a monorepo project of mine, and found the idea of stubbing really nice!From what I am seeing, stubbing uses
jiti
, and I was hoping that it would work correctly in a browser environment, but it seems to be using Node-specific functionality.I am personally trying to consume the stub of my library in a vite app, and it should be able to ingest the library's source code as is, TypeScript and all. Is there an alternative to
unbuild --stub
that would essentially create andist/index.mjs
file with:Beta Was this translation helpful? Give feedback.
All reactions