Replace Svelte components with Lit elements (#1174)

This commit is contained in:
Sascha Ißbrücker
2025-08-24 12:28:15 +02:00
committed by GitHub
parent d519cb74eb
commit d873342105
11 changed files with 613 additions and 668 deletions

View File

@@ -1,27 +1,18 @@
import svelte from "rollup-plugin-svelte";
import resolve from "@rollup/plugin-node-resolve";
import terser from "@rollup/plugin-terser";
import resolve from '@rollup/plugin-node-resolve';
import terser from '@rollup/plugin-terser';
const production = !process.env.ROLLUP_WATCH;
export default {
input: "bookmarks/frontend/index.js",
input: 'bookmarks/frontend/index.js',
output: {
sourcemap: true,
format: "iife",
name: "linkding",
format: 'iife',
name: 'linkding',
// Generate bundle in static folder to that it is picked up by Django static files finder
file: "bookmarks/static/bundle.js",
file: 'bookmarks/static/bundle.js',
},
plugins: [
svelte({
emitCss: false,
compilerOptions: {
// Workaround for rollup-plugin-svelte not setting the compiler option when emitCss is false
css: "injected",
},
}),
// If you have external dependencies installed from
// npm, you'll most likely need these plugins. In
// some cases you'll need additional configuration —