Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
`worker.plugins is now a function that returns an array of plugins. Please update your Vite config accordingly.`
  • Loading branch information
carlobeltrame committed Mar 25, 2024
1 parent c9ab08b commit 93b188d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default defineConfig(({ mode }) => ({
},
plugins,
worker: {
plugins: [comlink()],
plugins: () => [comlink()],
},
optimizeDeps: {
include: [
Expand Down

0 comments on commit 93b188d

Please sign in to comment.