Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump highlight.js from 10.7.3 to 11.3.1 fixing build #1915

Closed
wants to merge 1 commit into from

Conversation

azul
Copy link
Contributor

@azul azul commented Oct 27, 2021

Summary

Bumps highlight.js from 10.7.3 to 11.3.1.


updated-dependencies:

  • dependency-name: highlight.js
    dependency-type: direct:production
    update-type: version-update:semver-major
    ...

Work around a bug in webpack with dynamic imports:
webpack/webpack#13865

Signed-off-by: dependabot[bot] support@github.com

Comment on lines -51 to +52
const lang = await import(/* webpackChunkName: "highlight/[request]" */'highlight.js/lib/languages/' + languages[i])
const langModule = 'highlight.js/lib/languages/' + languages[i]
const lang = await import(/* webpackChunkName: "highlight/[request]" */langModule)
Copy link
Contributor Author

@azul azul Oct 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to do the trick.
I have no idea why though - so i'm not sure if we want to include this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this seems to fix the build but the syntax highlighting files are no longer included.

Found another bug when testing this #1916 but even with that it seems there is no request for the dynamic chunk name then.

Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 10.7.3 to 11.3.1.
- [Release notes](https://github.com/highlightjs/highlight.js/releases)
- [Changelog](https://github.com/highlightjs/highlight.js/blob/main/CHANGES.md)
- [Commits](highlightjs/highlight.js@10.7.3...11.3.1)

---
updated-dependencies:
- dependency-name: highlight.js
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Work around a bug in webpack with dynamic imports:
webpack/webpack#13865

Signed-off-by: dependabot[bot] <support@github.com>
@azul
Copy link
Contributor Author

azul commented Oct 29, 2021

Okay... this just broke the dynamic import but it's definitely not the way to go.

@azul azul closed this Oct 29, 2021
@max-nextcloud max-nextcloud deleted the upgrade/highlight.js-11.3.1 branch February 17, 2022 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants