Skip to content
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

Merged
merged 2 commits into from
Nov 15, 2023
Merged

feat(node): export some types #283

merged 2 commits into from
Nov 15, 2023

Conversation

underfin
Copy link
Contributor

Description

Test Plan


@underfin
Copy link
Contributor Author

underfin commented Nov 15, 2023

@underfin underfin changed the title feat: export some types feat(node): export some types Nov 15, 2023
export type { RollupOptions, InputOptions, OutputOptions }

// export types from rollup
export type { RollupOutput, Plugin } from 'rollup'
Copy link
Member

@hyf0 hyf0 Nov 15, 2023

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

Copy link
Member

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.

Base automatically changed from 11-15-feat_vite-scanner_load_script_content_from_html to main November 15, 2023 13:51
@underfin underfin force-pushed the 11-15-feat_export_some_types branch from 4d70a43 to 1a2a15e Compare November 15, 2023 13:52
@underfin underfin merged commit aea91ab into main Nov 15, 2023
5 checks passed
@underfin underfin deleted the 11-15-feat_export_some_types branch November 15, 2023 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants