Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ const buildOptions = {
bundle: true,
alias: {
"@": path.resolve(process.cwd(), "src"),
// localforage's default build bundles the `lie` Promise polyfill, whose
// `immediate` fallback creates <script> elements at runtime. Obsidian's
// review flags that as code obfuscation; Electron has native Promise.
localforage: "localforage/dist/localforage.nopromises.js",
},
external: [
"obsidian",
Expand Down
Loading