chore(client/dx): highlight.js not working

This commit is contained in:
Elian Doran 2025-08-31 11:58:11 +03:00
parent 5a29c831a1
commit 8fb078029c
No known key found for this signature in database
2 changed files with 1 additions and 6 deletions

View File

@ -41,11 +41,6 @@ export default defineConfig(() => ({
] as Plugin[],
resolve: {
alias: [
// Force the use of dist in development mode because upstream ESM is broken (some hybrid between CJS and ESM, will be improved in upcoming versions).
{
find: "@triliumnext/highlightjs",
replacement: resolve(__dirname, "node_modules/@triliumnext/highlightjs/dist")
},
{
find: "react",
replacement: "preact/compat"

View File

@ -1,4 +1,4 @@
import hljs from "../node_modules/highlight.js/es/core.js";
import hljs from "highlight.js";
import { normalizeMimeTypeForCKEditor, type MimeType } from "@triliumnext/commons";
import syntaxDefinitions from "./syntax_highlighting.js";
import { type Theme } from "./themes.js";