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: restrict typings and refactor RenderedModule #503

Merged

Conversation

hyf0
Copy link
Member

@hyf0 hyf0 commented Mar 9, 2024

Description

Types in @rolldown/node is kind of over-complex and mix up with rollup's types. I think we need make types reliable to our users and use other ways to keep the compatibility with rollup's types.

Types should make user aware what features are available and what aren't.


https://github.com/rolldown-rs/rolldown/blob/f81f87dc4a67f18b8de26f3084d20e003aec3d68/crates/rolldown_common/src/types/rendered_module.rs#L4-L5

Above length is calculated based on utf-8 while rollup emits length based utf-16. Remove these currently, until we find a way to get correct result.


Test Plan


Copy link
Member Author

hyf0 commented Mar 9, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @hyf0 and the rest of your teammates on Graphite Graphite

@hyf0 hyf0 force-pushed the 03-09-feat_restrict_typings_and_refactor_RenderedModule_ branch from c73b9f8 to 50dc2b3 Compare March 9, 2024 12:09
Copy link

netlify bot commented Mar 9, 2024

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit c73b9f8
🔍 Latest deploy log https://app.netlify.com/sites/rolldown-rs/deploys/65ec514d8169e70007a7bc59

Copy link

netlify bot commented Mar 9, 2024

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit 50dc2b3
🔍 Latest deploy log https://app.netlify.com/sites/rolldown-rs/deploys/65ec516b52ab3a0008d9d250

Copy link

netlify bot commented Mar 9, 2024

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit 50dc2b3
🔍 Latest deploy log https://app.netlify.com/sites/rolldown-rs/deploys/65ec516b72114a0008cf291d

@hyf0 hyf0 merged commit 1cc0fbe into main Mar 9, 2024
13 checks passed
@hyf0 hyf0 deleted the 03-09-feat_restrict_typings_and_refactor_RenderedModule_ branch March 9, 2024 12:35
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.

1 participant