Skip to content

Commit

Permalink
💚 bundle imported packages into background bundle (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiangWeixian authored Mar 23, 2023
1 parent fa8ac6b commit 2c964b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/odd-lizards-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aiou/webext-template": patch
---

bundle all packages into background bundle
2 changes: 2 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export default defineConfig(() => ({
...(isDev ? { mv3client: './scripts/client.ts' } : {}),
},
outDir: 'extension/dist',
// bundle all imported packages into bundle(background.ts)
noExternal: [/./],
format: ['esm'],
target: 'esnext',
ignoreWatch: ['**/extension/**'],
Expand Down

0 comments on commit 2c964b7

Please sign in to comment.