Skip to content

Generating a chunk with a name containing % will lead to URI malformed error #5441

@sapphi-red

Description

@sapphi-red

Rollup Version

4.13.0

Operating System (or Browser)

Stackblitz

Node Version (if applicable)

No response

Link To Reproduction

https://stackblitz.com/edit/rollup-repro-jhg2my?file=dist%2Fmain.js

Expected Behaviour

The output chunk name doesn't use %. Or the import('./foo%25bar-hash.js') is generated instead of import('./foo%bar-hash.js').

Actual Behaviour

The output chunk name doesn't uses %.

Additional Information

This is similar to #4222. Maybe it makes sense to add % to the default sanitizeFileName like it was done in #4262.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions