Skip to content

Commit

Permalink
mark conflicting dependency as external
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzamontiel committed Feb 20, 2024
1 parent f9624be commit 42ab13d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ import { polyfillNode } from 'esbuild-plugin-polyfill-node';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [preact()],
build: {
rollupOptions: { external: ['isomorphic-unfetch'] },
},
esbuild: {
logOverride: { 'this-is-undefined-in-esm': 'silent' },
},
optimizeDeps: {
exclude: [],
esbuildOptions: {
// Node.js global to browser globalThis
define: {
Expand Down

0 comments on commit 42ab13d

Please sign in to comment.