-
Notifications
You must be signed in to change notification settings - Fork 29
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
When codesplitting on server runtime, .js
with typedefs files are created instead of .d.ts
#547
Comments
.js
with typedefs files are created instead of .d.ts
.js
with typedefs files are created instead of .d.ts
I just ran into the same issue. Here's a reproduction: amannn/bunchee-test@a9e6ce6 The relevant part is that there's a type created in the shared runtime that is then referenced in an entry point. As a result, the file Using a
|
It seems have some issues with codesplit, maybe I should mark this shared-runtime feature as experimental..as it's not super reliable now. I would probably go with sth else in #540 |
We might stay on this route as we heavily rely on I hope #540 also supports react server only runtime declarations. |
@amannn @huozhi https://gist.github.com/sannajammeh/0d2ef984d9a076a90dae9ba27910ea5e |
Adding
.server-runtime
or.shared-runtime
to a file causes the bundler to codesplit correctly, but rather than creating a corresponding.d.ts
extension file it will add a.js
extension and dump the declarations in there.The text was updated successfully, but these errors were encountered: