mirror of
https://github.com/zadam/trilium.git
synced 2025-12-05 15:04:24 +01:00
chore(client/dx): highlight.js not working
This commit is contained in:
parent
5a29c831a1
commit
8fb078029c
@ -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"
|
||||
|
||||
@ -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";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user