Skip to content

refactor: inline deepFreeze and drop deep-freeze-es6 - #4473

Open
joshgoebel wants to merge 1 commit into
mainfrom
chore/inline-deep-freeze
Open

refactor: inline deepFreeze and drop deep-freeze-es6#4473
joshgoebel wants to merge 1 commit into
mainfrom
chore/inline-deep-freeze

Conversation

@joshgoebel

Copy link
Copy Markdown
Member

Summary

Test plan

  • node tools/build.js -t node
  • Smoke: hljs.C_LINE_COMMENT_MODE is frozen after load
  • CI green

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

3 files changed

Total change -198 B

View Changes
file base pr diff
es/core.min.js 8.24 KB 8.18 KB -66 B
es/highlight.min.js 8.24 KB 8.18 KB -66 B
highlight.min.js 8.28 KB 8.21 KB -66 B

Only used to freeze built-in MODES; a small Object.freeze walk is enough.
Avoids tracking a dep whose majors mostly tighten Node engines.
@joshgoebel
joshgoebel force-pushed the chore/inline-deep-freeze branch from 2a6e70e to 2fe4251 Compare August 9, 2026 07:06
@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

3 files changed

Total change -207 B

View Changes
file base pr diff
es/core.min.js 8.22 KB 8.15 KB -69 B
es/highlight.min.js 8.22 KB 8.15 KB -69 B
highlight.min.js 8.26 KB 8.19 KB -69 B

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.

2 participants