Skip to content

Commit

Permalink
fix: incorrect build for non-external dependencies (#2)
Browse files Browse the repository at this point in the history
Signed-off-by: Neko Ayaka <[email protected]>
  • Loading branch information
nekomeowww authored Jun 5, 2024
1 parent 223757f commit 502e861
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ export default defineBuildConfig({
sourcemap: true,
declaration: false,
externals: [
'ofetch',
// UnoCSS
'unocss',
'@unocss/core',
// Obsidian
'obsidian',
'electron',
Expand Down Expand Up @@ -42,5 +38,10 @@ export default defineBuildConfig({
sourcemap: true,
entryFileNames: 'main.js',
},
// required for unocss, ofetch, etc.
// otherwise unbuild will detect them as external
// dependencies that are inline implicitly external
// by esbuild
inlineDependencies: true,
},
})

0 comments on commit 502e861

Please sign in to comment.