[GH-ISSUE #17226] issue: The bundled contains two identical copies of highlight.js, resulting in increased package size. #56879

Closed
opened 2026-05-05 20:11:47 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @ShirasawaSama on GitHub (Sep 5, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17226

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

dev

Ollama Version (if applicable)

No response

Operating System

mac

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

highlight.js exists only once in the packaged product.

Actual Behavior

The bundled output contains two identical copies of highlight.js, resulting in increased package size.

Image

Steps to Reproduce

just run npm run build

Logs & Screenshots

Additional Information

No response

Originally created by @ShirasawaSama on GitHub (Sep 5, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/17226 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version dev ### Ollama Version (if applicable) _No response_ ### Operating System mac ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior highlight.js exists only once in the packaged product. ### Actual Behavior The bundled output contains two identical copies of highlight.js, resulting in increased package size. <img width="1246" height="1184" alt="Image" src="https://github.com/user-attachments/assets/d3b5d011-04ff-423c-ac7f-a7491cf1b2d2" /> ### Steps to Reproduce just run `npm run build` ### Logs & Screenshots ### Additional Information _No response_
GiteaMirror added the bug label 2026-05-05 20:11:47 -05:00
Author
Owner

@tjbck commented on GitHub (Sep 5, 2025):

Most likely one is for codemirror and another is directly imported for static code highlight. PR welcome here!

<!-- gh-comment-id:3258339049 --> @tjbck commented on GitHub (Sep 5, 2025): Most likely one is for codemirror and another is directly imported for static code highlight. PR welcome here!
Author
Owner

@rgaricano commented on GitHub (Sep 6, 2025):

Proposal PR: https://github.com/open-webui/open-webui/pull/17250

<!-- gh-comment-id:3263235257 --> @rgaricano commented on GitHub (Sep 6, 2025): Proposal PR: https://github.com/open-webui/open-webui/pull/17250
Author
Owner

@tjbck commented on GitHub (Sep 17, 2025):

#17476

<!-- gh-comment-id:3303780036 --> @tjbck commented on GitHub (Sep 17, 2025): #17476
Author
Owner

@ShirasawaSama commented on GitHub (Sep 22, 2025):

#17645

<!-- gh-comment-id:3317454453 --> @ShirasawaSama commented on GitHub (Sep 22, 2025): #17645
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#56879