Skip to content

Commit e3e8505

Browse files
committed
remove vite-plugin-top-level await
1 parent 8bf5fd7 commit e3e8505

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

demos/example-vite-encryption/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"devDependencies": {
1717
"@swc/core": "~1.6.0",
1818
"vite": "^5.0.12",
19-
"vite-plugin-top-level-await": "^1.4.1",
2019
"vite-plugin-wasm": "^3.3.0"
2120
}
2221
}

demos/example-vite-encryption/vite.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import wasm from 'vite-plugin-wasm';
2-
import topLevelAwait from 'vite-plugin-top-level-await';
32
import { defineConfig } from 'vite';
43

54
// https://vitejs.dev/config/
@@ -18,9 +17,9 @@ export default defineConfig({
1817
// https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673
1918
exclude: ['@journeyapps/wa-sqlite', '@powersync/web']
2019
},
21-
plugins: [wasm(), topLevelAwait()],
20+
plugins: [wasm()],
2221
worker: {
2322
format: 'es',
24-
plugins: () => [wasm(), topLevelAwait()]
23+
plugins: () => [wasm()]
2524
}
2625
});

demos/example-vite/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"@vitest/browser": "^3.2.4",
2020
"playwright": "^1.51.0",
2121
"vite": "^5.0.12",
22-
"vite-plugin-top-level-await": "^1.4.1",
2322
"vite-plugin-wasm": "^3.3.0",
2423
"vitest": "^3.2.4"
2524
}

demos/example-vite/vite.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { defineConfig } from 'vite';
2-
import topLevelAwait from 'vite-plugin-top-level-await';
32
import wasm from 'vite-plugin-wasm';
43

54
// https://vitejs.dev/config/
@@ -18,10 +17,10 @@ export default defineConfig({
1817
// https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673
1918
exclude: ['@journeyapps/wa-sqlite', '@powersync/web']
2019
},
21-
plugins: [wasm(), topLevelAwait()],
20+
plugins: [wasm()],
2221
worker: {
2322
format: 'es',
24-
plugins: () => [wasm(), topLevelAwait()]
23+
plugins: () => [wasm()]
2524
},
2625
test: {
2726
globals: true,

0 commit comments

Comments
 (0)