Skip to content

feat: pass the remaining normalized fields from rust to js#2987

Merged
hyf0 merged 1 commit intorolldown:mainfrom
shulaoda:feat/pass-normalized-fileds-from-rust-to-js
Nov 29, 2024
Merged

feat: pass the remaining normalized fields from rust to js#2987
hyf0 merged 1 commit intorolldown:mainfrom
shulaoda:feat/pass-normalized-fileds-from-rust-to-js

Conversation

@shulaoda
Copy link
Copy Markdown
Member

@shulaoda shulaoda commented Nov 29, 2024

Description

closes #2906

I've mostly aligned NormalizedOutputOptions with rollup. If NormalizedInputOptions isn't needed, we can close this issue.

The following fields are unique to us:

minify: boolean
comments: 'none' | 'preserve-legal'

I haven't handled this because converting HybridRegex in rust to js regex is challenging:

advancedChunks?: {
minSize?: number
minShareCount?: number
groups?: {
name: string
test?: StringOrRegExp
priority?: number
minSize?: number
minShareCount?: number
}[]

@netlify
Copy link
Copy Markdown

netlify bot commented Nov 29, 2024

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit 71e6863
🔍 Latest deploy log https://app.netlify.com/sites/rolldown-rs/deploys/6749d4e2051b7e00080fcc4b

Copy link
Copy Markdown
Member

@hyf0 hyf0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot.

@hyf0 hyf0 enabled auto-merge November 29, 2024 14:53
@hyf0 hyf0 added this pull request to the merge queue Nov 29, 2024
Merged via the queue into rolldown:main with commit f1c8656 Nov 29, 2024
@shulaoda shulaoda deleted the feat/pass-normalized-fileds-from-rust-to-js branch November 29, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pass normalized options from rust to js

2 participants