Skip to content

fix: allow configuration freeze#4428

Merged
alexander-akait merged 1 commit intomasterfrom
issue-4427
Apr 2, 2025
Merged

fix: allow configuration freeze#4428
alexander-akait merged 1 commit intomasterfrom
issue-4427

Conversation

@alexander-akait
Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

fixes #4427

Did you add tests for your changes?

Yes

If relevant, did you update the documentation?

No need

Summary

Allow to use Object.freeze({}) as a configuration

Does this PR introduce a breaking change?

No

Other information

There is a small limitation, because we modify some default options in configuration for better DX, using Object.freeze({}) prevent doing it, theoretically we can clone object, but it is has a bed perf and will don't work for all fields, also if you are using Object.freeze({}) it means you really don't want to modify something, otherwise just don't use it

@alexander-akait alexander-akait requested a review from a team as a code owner April 2, 2025 11:30
@alexander-akait alexander-akait enabled auto-merge (squash) April 2, 2025 12:06
@alexander-akait alexander-akait disabled auto-merge April 2, 2025 12:06
@alexander-akait alexander-akait merged commit a9ac533 into master Apr 2, 2025
49 checks passed
@alexander-akait alexander-akait deleted the issue-4427 branch April 2, 2025 12:06
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.

cannot webpack with TypeError

1 participant