Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
kvhnuke committed Feb 13, 2025
1 parent 96832b4 commit 821a834
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/extension/configs/vite/empty.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const readFileSync = () => {};
const writeFileSync = () => {};

export { readFileSync, writeFileSync };
3 changes: 2 additions & 1 deletion packages/extension/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default defineConfig({
minify: process.env.MINIFY === 'true' ? 'esbuild' : false,
rollupOptions: {
plugins: [],
external: ['fs'],
external: [],
input: {
action: 'action.html',
onboard: 'onboard.html',
Expand All @@ -120,6 +120,7 @@ export default defineConfig({
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'@action': fileURLToPath(new URL('./src/ui/action', import.meta.url)),
fs: './configs/vite/empty.js',
},
},
});

0 comments on commit 821a834

Please sign in to comment.