Skip to content

[Bug]: CssExtractRspackPlugin now does not support absolute paths in filename #11709

@krutoo

Description

@krutoo

System Info

System:
OS: macOS 15.6.1
CPU: (12) arm64 Apple M3 Pro
Memory: 117.95 MB / 36.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.19.4 - ~/.nvm/versions/node/v20.19.4/bin/node
npm: 10.9.3 - ~/.nvm/versions/node/v20.19.4/bin/npm
bun: 1.2.4 - ~/.bun/bin/bun
Browsers:
Safari: 18.6
npmPackages:
@rspack/cli: ^1.5.5 => 1.5.5
@rspack/core: ^1.5.5 => 1.5.5

Details

After update from 1.2.2 to 1.5.5 CssExtractRspackPlugin changed its filename option processing

Before update: absolute path interpreted as absolute
After: absolute path interpreted as child path in dist

Reproduce link

https://github.com/krutoo/rspack-CssExtractRspackPlugin-issue

Reproduce Steps

  1. npm i
  2. npm run build
  3. see that dist-css folder is not created
  4. instead, css bundle emitted in dist folder with full path (/Users/your_user/...)

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions