Skip to content

Commit

Permalink
Merge pull request #31 from jillro/maud/upgrades
Browse files Browse the repository at this point in the history
Upgrade toolchain + Svelte 5
  • Loading branch information
jillro authored Dec 18, 2024
2 parents 9c5d924 + e5e39a5 commit 6942190
Show file tree
Hide file tree
Showing 8 changed files with 378 additions and 675 deletions.
8 changes: 4 additions & 4 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import esbuildSvelte from "esbuild-svelte";
import sveltePreprocess from "svelte-preprocess";
import esbuild from "esbuild";
import process from "process";
import builtins from "builtin-modules";
import { builtinModules } from "node:module";

const banner = `/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
Expand All @@ -19,7 +18,7 @@ const context = await esbuild.context({
css: "injected",
...(prod ? {} : { enableSourcemap: true }),
},
preprocess: sveltePreprocess(...(prod ? [] : [{ sourceMap: true }])),
sourceMap: !prod,
filterWarnings: (warning) => warning.code !== "css-unused-selector",
}),
],
Expand All @@ -42,14 +41,15 @@ const context = await esbuild.context({
"@lezer/common",
"@lezer/highlight",
"@lezer/lr",
...builtins,
...builtinModules,
],
format: "cjs",
target: "es2018",
logLevel: "info",
sourcemap: prod ? false : "inline",
treeShaking: true,
outfile: "main.js",
minify: prod,
});

if (prod) {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "cards-view",
"name": "Cards View",
"version": "1.7.0",
"minAppVersion": "0.15.0",
"minAppVersion": "1.6.5",
"description": "Displays a card view of your notes.",
"author": "Maud Royer",
"authorUrl": "https://maudroyer.fr",
Expand Down
Loading

0 comments on commit 6942190

Please sign in to comment.