Skip to content

Reduce size of babel-highlight in browser#14555

Closed
yhdgms1 wants to merge 1 commit intobabel:mainfrom
yhdgms1:reduce-browser-highlight-size
Closed

Reduce size of babel-highlight in browser#14555
yhdgms1 wants to merge 1 commit intobabel:mainfrom
yhdgms1:reduce-browser-highlight-size

Conversation

@yhdgms1
Copy link

@yhdgms1 yhdgms1 commented May 15, 2022

Q                       A
Fixed Issues?
Patch: Bug Fix? No
Major: Breaking Change? No
Minor: New Feature? No
Tests Added + Pass? No tests added
Documentation PR Link
Any Dependency Changes? No
License MIT

Syntax highlighting does not make sense for execution in the browser, because it uses Chalk, which only works with terminals, nevertheless it cannot be removed.

But it is possible to disable code highlighting in the browser, thereby reducing the weight of the code.

@babel-bot
Copy link
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/51911/

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.

3 participants