-
Notifications
You must be signed in to change notification settings - Fork 361
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
Transpiling local package dependencies that use TS file as entry point #845
Comments
If you're bundling a dependency, it shouldn't be listed in |
Doesn't seem like that's the case. I have all package dependencies listed as
This is my TS config:
But when I try to bundle, package that has its entry set as TS file does not compile, as in screenshot: This is a demo replicating the problem, try running |
@karolisvram Looks like you accidentally made that demo private |
Apologies 😬 I made it public. |
For tracking; probably a duplicate of #808 |
Hi, consider a monorepo that has some TypeScript packages kept in
packages/*
. Now one of these packages, let's call itb
, depends on packagea
. Packagea
has entry point set as TS file e.g.src/index.ts.
. When trying to bundle such packagemicrobundle
fails since it cannot transpile packagea
as it's declared as a dependency ofb
and thus it's expected that the package is already bundled up.I could think of the following solutions:
I have prepared a small sample monorepo illustrating the issue https://github.com/karolisvram/packages-publishing-sample/ but so far haven't decided on the best solution as all have drawbacks. Ideally, mirobundle would transpile its local dependencies too but as far as I can tell, it's not supported? Any there any other alternatives that I'm missing?
The text was updated successfully, but these errors were encountered: