-
Notifications
You must be signed in to change notification settings - Fork 503
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
feat(node): export some types #283
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
export type { RollupOptions, InputOptions, OutputOptions } | ||
|
||
// export types from rollup | ||
export type { RollupOutput, Plugin } from 'rollup' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. It's would be cooler that you could add some contexts here for why we want export rollup types from rolldown.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is used because vite using custom plugin type and bundle.write()
result type, and also we need to export some compat with rollup types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We maybe meet some type not compatible with rollup
, also it's difficult to resolve same type at diffre
nt rollup version. So we cant ignore the situation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good. I was planned to remove the `rollup` dependency from the @rolldown/node
, it's kind feel strange. Glad to know the contexts. Good job.
4d70a43
to
1a2a15e
Compare
Description
Test Plan