Skip to content

feat(css)!: remove css_entry_filenames , css_chunk_filenames and related code#8402

Merged
graphite-app[bot] merged 1 commit intomainfrom
02-20-feat_css_remove_css_entry_filenames_css_chunk_filenames_and_related_code
Feb 20, 2026
Merged

feat(css)!: remove css_entry_filenames , css_chunk_filenames and related code#8402
graphite-app[bot] merged 1 commit intomainfrom
02-20-feat_css_remove_css_entry_filenames_css_chunk_filenames_and_related_code

Conversation

@hyf0
Copy link
Member

@hyf0 hyf0 commented Feb 20, 2026

  • Pure code removal, no architecture changes.
  • Snapshot changed becuase removing cssFilenames cause the order of compute filename hash changed

Copy link
Member Author

hyf0 commented Feb 20, 2026


How to use the Graphite Merge Queue

Add the label graphite: merge-when-ready to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

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

@hyf0 hyf0 marked this pull request as ready for review February 20, 2026 11:54
Copilot AI review requested due to automatic review settings February 20, 2026 11:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes experimental CSS bundling support from Rolldown by deleting the css_entry_filenames and css_chunk_filenames options along with all related CSS processing code. This is a pure code removal focused on eliminating CSS-specific functionality that was not ready for public use.

Changes:

  • Removed CSS-specific filename configuration options (cssEntryFileNames, cssChunkFileNames) from TypeScript and Rust codebases
  • Deleted CSS module processing infrastructure including CssView, CssAssetMeta, CssGenerator, and CssRenderer
  • Updated CSS module handling to error early with an informative message directing users to issue #4271
  • Removed css-module-lexer dependency from Cargo workspace

Reviewed changes

Copilot reviewed 39 out of 40 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/rolldown/src/options/output-options.ts Removed CSS filename option type definitions
packages/rolldown/src/options/normalized-output-options.ts Removed CSS filename option getters
packages/rolldown/src/utils/validator.ts Removed CSS filename validation schemas
packages/rolldown/src/utils/bindingify-output-options.ts Removed CSS option binding logic
packages/rolldown/src/binding.d.cts Removed CSS filename option type declarations from binding interface
packages/rolldown/tests/fixtures/verify-options/_config.ts Removed CSS filename option tests
packages/rolldown/tests/fixtures/output/hash-filenames/normal/_config.ts Updated hash expectations due to filename computation order change
packages/rolldown/tests/cli/snapshots/cli-e2e.test.ts.snap Removed CSS filename CLI options from help output
crates/rolldown_testing/_config.schema.json Removed CSS filename fields from test config schema
crates/rolldown_common/src/types/asset_meta.rs Removed Css variant from InstantiationKind enum
crates/rolldown_common/src/module/normal_module.rs Removed css_view field from NormalModule
crates/rolldown_common/src/module/mod.rs Simplified import_records logic after CSS view removal
crates/rolldown_common/src/lib.rs Removed CSS module re-exports
crates/rolldown_common/src/inner_bundler_options/types/normalized_bundler_options.rs Removed CSS filename option fields
crates/rolldown_common/src/inner_bundler_options/mod.rs Removed CSS filename option declarations
crates/rolldown_common/src/css/mod.rs Deleted CSS module entry point
crates/rolldown_common/src/css/css_view.rs Deleted CSS view implementation
crates/rolldown_common/src/css/css_asset_meta.rs Deleted CSS asset metadata
crates/rolldown_common/src/chunk/mod.rs Removed CSS preliminary filename generation methods
crates/rolldown_binding/src/utils/normalize_binding_options.rs Removed CSS filename option normalization
crates/rolldown_binding/src/types/binding_normalized_options.rs Removed CSS filename getters from binding
crates/rolldown_binding/src/options/binding_output_options/mod.rs Removed CSS filename option fields
crates/rolldown/tests/snapshots/integration_rolldown__filename_with_hash.snap Updated hash values due to computation order change
crates/rolldown/tests/rolldown/topics/new_url/nested_dirs/artifacts.snap Updated hash values in generated filenames
crates/rolldown/tests/esbuild/loader/loader_file_one_source_two_different_output_paths_js/artifacts.snap Updated hash values in generated filenames
crates/rolldown/src/utils/prepare_build_context.rs Removed default CSS filename initialization
crates/rolldown/src/utils/parse_to_ecma_ast.rs Changed CSS module handling to unreachable with early error
crates/rolldown/src/utils/chunk/finalize_chunks.rs Removed CSS chunk finalization logic
crates/rolldown/src/stages/generate_stage/render_chunk_to_assets.rs Removed CSS generator invocation
crates/rolldown/src/stages/generate_stage/mod.rs Simplified asset patching after CSS view removal, removed clippy annotation
crates/rolldown/src/stages/generate_stage/minify_chunks.rs Removed CSS case from minification logic
crates/rolldown/src/module_loader/runtime_module_task.rs Removed css_view initialization
crates/rolldown/src/module_loader/module_task.rs Added informative error for CSS modules, removed CSS view creation
crates/rolldown/src/lib.rs Removed CSS module declaration
crates/rolldown/src/ecmascript/ecma_module_view_factory.rs Removed CSS-specific side effects check
crates/rolldown/src/css/mod.rs Deleted CSS module entry point
crates/rolldown/src/css/css_generator.rs Deleted CSS generator implementation
crates/rolldown/Cargo.toml Removed css-module-lexer dependency
Cargo.toml Removed css-module-lexer workspace dependency
Cargo.lock Removed css-module-lexer package and references

@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2026

Benchmarks Rust

  • target: 02-20-feat_css_emit_error_when_passing_moduletype_css_to_rolldown(ba92e11)
  • pr: 02-20-feat_css_remove_css_entry_filenames_css_chunk_filenames_and_related_code(75c9d70)
group                                                        pr                                     target
-----                                                        --                                     ------
bundle/bundle@multi-duplicated-top-level-symbol              1.00     71.7±2.23ms        ? ?/sec    1.01     72.2±3.76ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-sourcemap    1.04     79.5±3.13ms        ? ?/sec    1.00     76.1±2.47ms        ? ?/sec
bundle/bundle@rome_ts                                        1.00    102.4±4.11ms        ? ?/sec    1.04    106.0±2.63ms        ? ?/sec
bundle/bundle@rome_ts-sourcemap                              1.00    112.3±2.13ms        ? ?/sec    1.03    115.6±2.42ms        ? ?/sec
bundle/bundle@threejs                                        1.00     36.5±2.13ms        ? ?/sec    1.02     37.4±1.96ms        ? ?/sec
bundle/bundle@threejs-sourcemap                              1.00     40.9±0.74ms        ? ?/sec    1.04     42.3±0.90ms        ? ?/sec
bundle/bundle@threejs10x                                     1.01    377.8±8.32ms        ? ?/sec    1.00    373.4±8.60ms        ? ?/sec
bundle/bundle@threejs10x-sourcemap                           1.01   431.6±13.46ms        ? ?/sec    1.00    426.9±9.64ms        ? ?/sec
scan/scan@rome_ts                                            1.01     80.0±1.98ms        ? ?/sec    1.00     79.0±1.84ms        ? ?/sec
scan/scan@threejs                                            1.00     27.6±1.53ms        ? ?/sec    1.00     27.7±1.53ms        ? ?/sec
scan/scan@threejs10x                                         1.00    284.2±5.74ms        ? ?/sec    1.00   283.9±10.37ms        ? ?/sec

@hyf0 hyf0 force-pushed the 02-20-feat_css_emit_error_when_passing_moduletype_css_to_rolldown branch from c9a5af1 to ba92e11 Compare February 20, 2026 12:14
@hyf0 hyf0 force-pushed the 02-20-feat_css_remove_css_entry_filenames_css_chunk_filenames_and_related_code branch from 0aa428f to 75c9d70 Compare February 20, 2026 12:14
@socket-security
Copy link

socket-security bot commented Feb 20, 2026

No dependency changes detected. Learn more about Socket for GitHub.

👍 No dependency changes detected in pull request

Copy link
Member Author

hyf0 commented Feb 20, 2026

Merge activity

  • Feb 20, 3:26 PM UTC: The merge label 'graphite: merge-when-ready' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 20, 3:26 PM UTC: hyf0 added this pull request to the Graphite merge queue.
  • Feb 20, 3:41 PM UTC: The Graphite merge queue couldn't merge this PR because it was not satisfying all requirements (Failed CI: 'node-test-macos / Node Test').
  • Feb 20, 4:27 PM UTC: The merge label 'graphite: merge-when-ready' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 20, 4:31 PM UTC: hyf0 added this pull request to the Graphite merge queue.
  • Feb 20, 4:42 PM UTC: Merged by the Graphite merge queue.

@graphite-app graphite-app bot force-pushed the 02-20-feat_css_emit_error_when_passing_moduletype_css_to_rolldown branch from ba92e11 to 157c672 Compare February 20, 2026 15:27
graphite-app bot pushed a commit that referenced this pull request Feb 20, 2026
…related code (#8402)

- Pure code removal, no architecture changes.
- Snapshot changed becuase removing `cssFilenames` cause the order of compute filename hash changed
@graphite-app graphite-app bot force-pushed the 02-20-feat_css_remove_css_entry_filenames_css_chunk_filenames_and_related_code branch from 75c9d70 to 64b20a0 Compare February 20, 2026 15:27
Base automatically changed from 02-20-feat_css_emit_error_when_passing_moduletype_css_to_rolldown to main February 20, 2026 15:39
…related code (#8402)

- Pure code removal, no architecture changes.
- Snapshot changed becuase removing `cssFilenames` cause the order of compute filename hash changed
Copilot AI review requested due to automatic review settings February 20, 2026 16:32
@graphite-app graphite-app bot force-pushed the 02-20-feat_css_remove_css_entry_filenames_css_chunk_filenames_and_related_code branch from 64b20a0 to 6c8834b Compare February 20, 2026 16:32
@hyf0 hyf0 review requested due to automatic review settings February 20, 2026 16:32
@netlify
Copy link

netlify bot commented Feb 20, 2026

Deploy Preview for rolldown-rs ready!

Name Link
🔨 Latest commit 6c8834b
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/69988c8ee1363200089a4570
😎 Deploy Preview https://deploy-preview-8402--rolldown-rs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@graphite-app graphite-app bot merged commit 6c8834b into main Feb 20, 2026
35 checks passed
@graphite-app graphite-app bot deleted the 02-20-feat_css_remove_css_entry_filenames_css_chunk_filenames_and_related_code branch February 20, 2026 16:42
shulaoda added a commit that referenced this pull request Feb 26, 2026
## [1.0.0-rc.6] - 2026-02-26

### 💥 BREAKING CHANGES

- css: remove `css_entry_filenames` , `css_chunk_filenames` and related code (#8402) by @hyf0
- css: drop builtin CSS bundling to explore alternative solutions (#8399) by @hyf0

### 🚀 Features

- rust/data-url: use hash as id for data url modules to prevent long string overhead (#8420) by @hyf0
- validate bundle stays within output dir (#8441) by @sapphi-red
- rust: support `PluginOrder::PinPost` (#8417) by @hyf0
- support `ModuleType:Copy` (#8407) by @hyf0
- expose `ESTree` types from `rolldown/utils` (#8400) by @sapphi-red

### 🐛 Bug Fixes

- incorrect sourcemap when postBanner/postFooter is used with shebang (#8459) by @Copilot
- resolver: disable node_path option to align ESM resolver behavior (#8472) by @sapphi-red
- parse `.js` within `"type": "commonjs"` as ESM for now (#8470) by @sapphi-red
- case-insensitive filename conflict detection for chunk deduplication (#8458) by @Copilot
- prevent inlining CJS exports that are mutated by importers (#8456) by @IWANABETHATGUY
- parse `.cjs` / `.cts` / `.js` within `"type": "commonjs"` as CommonJS (#8455) by @sapphi-red
- plugin/copy-module: correct hooks' priority (#8423) by @hyf0
- plugin/chunk-import-map: ensure `render_chunk_meta` run after users plugin (#8422) by @hyf0
- rust: correct hooks order of `DataUriPlugin` (#8418) by @hyf0
- `jsx.preserve` should also considering tsconfig json preserve (#8324) by @IWANABETHATGUY
- `deferred_scan_data.rs "Should have resolved id: NotFound"` error (#8379) by @sapphi-red
- cli: require value for `--dir`/`-d` and `--file`/`-o` (#8378) by @Copilot
- dev: avoid mutex deadlock caused by inconsistent lock order (#8370) by @sapphi-red

### 🚜 Refactor

- watch: rename TaskStart/TaskEnd to BundleStart/BundleEnd (#8463) by @hyf0
- rust: rename `rolldown_plugin_data_uri` to `rolldown_plugin_data_url` (#8421) by @hyf0
- bindingify-build-hook: extract helper for PluginContextImpl (#8438) by @ShroXd
- give source loading a proper name (#8436) by @IWANABETHATGUY
- ban holding DashMap refs across awaits (#8362) by @sapphi-red

### 📚 Documentation

- add glob pattern usage example to input option (#8469) by @IWANABETHATGUY
- remove `https://rolldown.rs` from links in reference docs (#8454) by @sapphi-red
- mention execution order issue in `output.codeSplitting` docs (#8452) by @sapphi-red
- clarify `output.comments` behavior a bit (#8451) by @sapphi-red
- replace npmjs package links with npmx.dev (#8439) by @Boshen
- reference: add `Exported from` for values / types exported from subpath exports (#8394) by @sapphi-red
- add JSDocs for APIs exposed from subpath exports (#8393) by @sapphi-red
- reference: generate reference pages for APIs exposed from subpath exports (#8392) by @sapphi-red
- avoid pipe character in codeSplitting example to fix broken rendering (#8391) by @IWANABETHATGUY

### ⚡ Performance

- avoid redundant PathBuf allocations in resolve paths (#8435) by @Brooooooklyn
- bump to `sugar_path@2` (#8432) by @hyf0
- use flag-based convergence detection in include_statements (#8412) by @Brooooooklyn

### 🧪 Testing

- execute `_test.mjs` even if `executeOutput` is false (#8398) by @sapphi-red
- add retry to tree-shake/module-side-effects-proxy4 as it is flaky (#8397) by @sapphi-red
- avoid `expect.assertions()` as it is not concurrent test friendly (#8383) by @sapphi-red
- disable `mockReset` option (#8382) by @sapphi-red
- fix flaky failure caused by concurrent resolveId calls (#8381) by @sapphi-red

### ⚙️ Miscellaneous Tasks

- deps: update dependency rollup to v4.59.0 [security] (#8471) by @renovate[bot]
- ai/design: add design doc about watch mode (#8453) by @hyf0
- deps: update oxc resolver to v11.19.0 (#8461) by @renovate[bot]
- ai: introduce progressive spec-driven development pattern (#8446) by @hyf0
- deprecate output.legalComments (#8450) by @sapphi-red
- deps: update dependency oxlint-tsgolint to v0.15.0 (#8448) by @renovate[bot]
- ai: make CLAUDE.md a symlink of AGENTS.md (#8445) by @hyf0
- deps: update rollup submodule for tests to v4.59.0 (#8433) by @sapphi-red
- deps: update test262 submodule for tests (#8434) by @sapphi-red
- deps: update oxc to v0.115.0 (#8430) by @renovate[bot]
- deps: update oxc apps (#8429) by @renovate[bot]
- deps: update npm packages (#8426) by @renovate[bot]
- deps: update rust crate owo-colors to v4.3.0 (#8428) by @renovate[bot]
- deps: update github-actions (#8424) by @renovate[bot]
- deps: update rust crates (#8425) by @renovate[bot]
- deps: update oxc resolver to v11.18.0 (#8406) by @renovate[bot]
- deps: update dependency oxlint-tsgolint to v0.14.2 (#8405) by @renovate[bot]
- ban `expect.assertions` in all fixture tests (#8395) by @sapphi-red
- deps: update oxc apps (#8389) by @renovate[bot]
- ban `expect.assertions` in fixture tests (#8387) by @sapphi-red
- enable lint for `_config.ts` files (#8386) by @sapphi-red
- deps: update dependency oxlint-tsgolint to v0.14.1 (#8385) by @renovate[bot]

Co-authored-by: shulaoda <165626830+shulaoda@users.noreply.github.com>
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.

3 participants