Skip to content

Commit

Permalink
Merge pull request #44 from philips/worker
Browse files Browse the repository at this point in the history
main: parallelize image processing
  • Loading branch information
philips authored Jan 11, 2025
2 parents 439506b + 9f3ed39 commit f853d0a
Show file tree
Hide file tree
Showing 7 changed files with 346 additions and 55 deletions.
7 changes: 6 additions & 1 deletion esbuild.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import esbuild from "esbuild";
import process from "process";
import builtins from "builtin-modules";
import inlineWorkerPlugin from "esbuild-plugin-inline-worker";

const banner =
`/*
Expand All @@ -15,8 +16,12 @@ const context = await esbuild.context({
banner: {
js: banner,
},
entryPoints: ["main.ts"],
entryPoints: ["src/main.ts"],
alias: {
'supernote-typescript': 'supernote-typescript'
},
bundle: true,
plugins: [inlineWorkerPlugin()],
external: [
"obsidian",
"electron",
Expand Down
Loading

0 comments on commit f853d0a

Please sign in to comment.