Skip to content

[Feature Request]: support output.freeze #7722

@simon04

Description

@simon04

What problem does this feature solve?

https://rollupjs.org/configuration-options/#output-freeze

Whether to Object.freeze() namespace import objects (i.e. import * as namespaceImportObject from...) that are accessed dynamically.

Context: we're trying to migrate the leaflet build process to rolldown in Leaflet/Leaflet#10011 and found that output.freeze is not supported in rolldown v1.0.0-beta.58. Related:

"language/module-code/namespace/internals/is-extensible.js": {
"reason": "Rolldown does not freeze module namespace objects"
},

What does the proposed API look like?

https://rollupjs.org/configuration-options/#output-freeze

Metadata

Metadata

Assignees

Priority

None yet

Start date

None yet

Target date

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions