Skip to content

Commit

Permalink
fix: specify the fs module as rollup external
Browse files Browse the repository at this point in the history
when using node module, vite build fails
  • Loading branch information
Gumball12 committed Feb 25, 2024
1 parent 910f2b7 commit ce24636
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ export default defineConfig({
},
name: 'googleSpreadsheetDts',
},
rollupOptions: {
external: ['node:fs'],
},
},
});

0 comments on commit ce24636

Please sign in to comment.