Skip to content

Build your personal knowledge base with Trilium Notes

build: let webpack bundle split.js

Panagiotis Papadopoulos559517ace16d
diff --git a/src/public/app/services/resizer.ts b/src/public/app/services/resizer.ts
index d6e828047e..164f82eaea 100644
--- a/src/public/app/services/resizer.ts
+++ b/src/public/app/services/resizer.ts
@@ -1,4 +1,5 @@
import options from "./options.js";
+import Split from "split.js"
let leftInstance: ReturnType<typeof Split> | null;
let rightInstance: ReturnType<typeof Split> | null;
diff --git a/src/public/app/types.d.ts b/src/public/app/types.d.ts
index 2a11f30e5c..39c4e2d6d9 100644
--- a/src/public/app/types.d.ts
+++ b/src/public/app/types.d.ts
@@ -123,13 +123,6 @@ declare global {
language: string
});
};
- var Split: (selectors: string[], config: {
- sizes: [ number, number ];
- gutterSize: number;
- onDragEnd: (sizes: [ number, number ]) => void;
- }) => {
- destroy();
- };
var renderMathInElement: (element: HTMLElement, options: {
trust: boolean;
}) => void;
diff --git a/src/routes/assets.ts b/src/routes/assets.ts
index 8c7f298eb7..f925a6108f 100644
--- a/src/routes/assets.ts
+++ b/src/routes/assets.ts
@@ -70,8 +70,6 @@ async function register(app: express.Application) {
app.use(`/${assetPath}/node_modules/jquery-hotkeys/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/jquery-hotkeys/")));
- app.use(`/${assetPath}/node_modules/split.js/dist/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/split.js/dist/")));
-
app.use(`/${assetPath}/node_modules/panzoom/dist/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/panzoom/dist/")));
// i18n
diff --git a/src/views/desktop.ejs b/src/views/desktop.ejs
index 390e5fdf9f..6896eeba88 100644
--- a/src/views/desktop.ejs
+++ b/src/views/desktop.ejs
@@ -44,7 +44,6 @@
<script src="<%= assetPath %>/node_modules/jquery-hotkeys/jquery-hotkeys.js"></script>
<script src="<%= assetPath %>/node_modules/autocomplete.js/dist/autocomplete.jquery.min.js"></script>
-<script src="<%= assetPath %>/node_modules/split.js/dist/split.min.js"></script>
<link href="<%= assetPath %>/stylesheets/ckeditor-theme.css" rel="stylesheet">
<link href="api/fonts" rel="stylesheet">