Skip to content

Commit

Permalink
[CHG] Updates esbuild & obsCHG] idian packages
Browse files Browse the repository at this point in the history
[CHG] Makes TS config less vague
[CHG] Brings esbuild config in line w/ TS config
  • Loading branch information
czottmann committed Jul 12, 2024
1 parent 5e14bb8 commit c47cdd3
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 115 deletions.
11 changes: 6 additions & 5 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ esbuild
banner: {
js: banner,
},
entryPoints: ["src/main.ts"],
bundle: true,
entryPoints: ["src/main.ts"],
external: [
"obsidian",
"electron",
Expand All @@ -60,12 +60,13 @@ esbuild
...builtins,
],
format: "cjs",
watch: !isProduction,
target: "es2018",
logLevel: "info",
sourcemap: isProduction ? false : "inline",
treeShaking: true,
minify: isProduction,
outfile: "main.js",
plugins: [rsyncPlugin],
sourcemap: isProduction ? false : "inline",
target: "es2022",
treeShaking: true,
watch: !isProduction,
})
.catch(() => process.exit(1));
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"builtin-modules": "3.3.0",
"esbuild": "^0.16.16",
"esbuild": "^0.16.17",
"filter-obj": "^5.1.0",
"obsidian": "^1.5.0",
"obsidian": "latest",
"obsidian-daily-notes-interface": "^0.9.4",
"obsidian-dataview": "^0.5.64",
"tslib": "2.4.0",
Expand Down
Loading

0 comments on commit c47cdd3

Please sign in to comment.