Remove worker config

This commit is contained in:
Arnaud 2024-09-10 19:14:03 +02:00
parent 467a8a93e9
commit 2e6112cd19
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
2 changed files with 0 additions and 20 deletions

View File

@ -4,14 +4,4 @@ import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [react({ jsxRuntime: "automatic" })], plugins: [react({ jsxRuntime: "automatic" })],
worker: {
rollupOptions: {
external: ["@codex-storage/sdk-js"],
output: {
globals: {
"@codex-storage/sdk-js": "codex-sdk-js",
},
},
},
},
}); });

View File

@ -10,16 +10,6 @@ const { glob } = pkg;
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
worker: {
rollupOptions: {
external: ["@codex-storage/sdk-js", "@tanstack/react-query"],
output: {
globals: {
"@codex-storage/sdk-js": "codex-sdk-js",
},
},
},
},
plugins: [ plugins: [
react(), react(),
libInjectCss(), libInjectCss(),