Skip to content

Commit

Permalink
Merge pull request #269 from openscript-ch/main
Browse files Browse the repository at this point in the history
fix: worker.plugins is now a function warning
  • Loading branch information
pvh authored Jan 19, 2024
2 parents 68ff91d + 1d4495c commit 345c442
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/react-counter/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default defineConfig({
},
worker: {
format: "es",
plugins: [wasm()],
plugins: () => [wasm()],
},

optimizeDeps: {
Expand Down
2 changes: 1 addition & 1 deletion examples/react-todo/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig({

worker: {
format: "es",
plugins: [wasm(), topLevelAwait()],
plugins: () => [wasm(), topLevelAwait()],
},

optimizeDeps: {
Expand Down
2 changes: 1 addition & 1 deletion examples/react-use-awareness/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig({
topLevelAwait()
],
worker: {
plugins: [
plugins: () => [
wasm(),
topLevelAwait()
]
Expand Down
2 changes: 1 addition & 1 deletion examples/svelte-counter/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default defineConfig({

worker: {
format: "es",
plugins: [wasm(), topLevelAwait()],
plugins: () => [wasm(), topLevelAwait()],
},

optimizeDeps: {
Expand Down

0 comments on commit 345c442

Please sign in to comment.