Fixed chaching problems

This commit is contained in:
meinzzzz 2025-11-21 23:50:49 +01:00
parent 49e90c08a9
commit 39838c25c2
6 changed files with 11 additions and 5 deletions

View File

@ -54,6 +54,7 @@
"leaflet-gpx": "2.2.0",
"mark.js": "8.11.1",
"marked": "17.0.0",
"mathlive": "0.108.2",
"mermaid": "11.12.1",
"mind-elixir": "5.3.6",
"normalize.css": "8.0.1",

View File

@ -83,7 +83,7 @@ export default defineConfig(() => ({
chunkFileNames: "src/[name].js",
assetFileNames: "src/[name].[ext]",
manualChunks: {
"ckeditor5": [ "@triliumnext/ckeditor5" ],
"ckeditor5": [ "@triliumnext/ckeditor5", "mathlive" ],
"boxicons": [ "../../node_modules/boxicons/css/boxicons.min.css" ]
},
},

View File

@ -1,6 +1,7 @@
import ckeditor from './../theme/icons/math.svg?raw';
import './augmentation.js';
import "../theme/mathform.css";
import 'mathlive';
import 'mathlive/fonts.css';
import 'mathlive/static.css';

View File

@ -4,7 +4,6 @@ import mathIcon from '../theme/icons/math.svg?raw';
import { Plugin, ClickObserver, ButtonView, ContextualBalloon, clickOutsideHandler, CKEditorError, uid } from 'ckeditor5';
import { getBalloonPositionData } from './utils.js';
import MathCommand from './mathcommand.js';
import 'mathlive';
const mathKeystroke = 'Ctrl+M';

View File

@ -1,4 +1,5 @@
import { View, type Locale } from 'ckeditor5';
import 'mathlive';
/**
* A view that wraps the MathLive `<math-field>` web component for interactive LaTeX equation editing.

10
pnpm-lock.yaml generated
View File

@ -274,6 +274,9 @@ importers:
marked:
specifier: 17.0.0
version: 17.0.0
mathlive:
specifier: 0.108.2
version: 0.108.2
mermaid:
specifier: 11.12.1
version: 11.12.1
@ -1055,9 +1058,6 @@ importers:
packages/ckeditor5-math:
dependencies:
'@ckeditor/ckeditor5-icons':
specifier: 47.2.0
version: 47.2.0
mathlive:
specifier: 0.108.2
version: 0.108.2
@ -15584,6 +15584,8 @@ snapshots:
'@ckeditor/ckeditor5-core': 47.2.0
'@ckeditor/ckeditor5-upload': 47.2.0
ckeditor5: 47.2.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)
transitivePeerDependencies:
- supports-color
'@ckeditor/ckeditor5-ai@47.2.0(bufferutil@4.0.9)(utf-8-validate@6.0.5)':
dependencies:
@ -15990,6 +15992,8 @@ snapshots:
'@ckeditor/ckeditor5-utils': 47.2.0
ckeditor5: 47.2.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)
es-toolkit: 1.39.5
transitivePeerDependencies:
- supports-color
'@ckeditor/ckeditor5-editor-multi-root@47.2.0':
dependencies: