Skip to content

Commit f853d0a

Browse files
authored
Merge pull request #44 from philips/worker
main: parallelize image processing
2 parents 439506b + 9f3ed39 commit f853d0a

File tree

7 files changed

+346
-55
lines changed

7 files changed

+346
-55
lines changed

esbuild.config.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import esbuild from "esbuild";
22
import process from "process";
33
import builtins from "builtin-modules";
4+
import inlineWorkerPlugin from "esbuild-plugin-inline-worker";
45

56
const banner =
67
`/*
@@ -15,8 +16,12 @@ const context = await esbuild.context({
1516
banner: {
1617
js: banner,
1718
},
18-
entryPoints: ["main.ts"],
19+
entryPoints: ["src/main.ts"],
20+
alias: {
21+
'supernote-typescript': 'supernote-typescript'
22+
},
1923
bundle: true,
24+
plugins: [inlineWorkerPlugin()],
2025
external: [
2126
"obsidian",
2227
"electron",

0 commit comments

Comments
 (0)