diff --git a/mvp/client/ui/vite.config.mjs.timestamp-1720871382103-708d65f7c40d4.mjs b/mvp/client/ui/vite.config.mjs.timestamp-1720871382103-708d65f7c40d4.mjs new file mode 100644 index 0000000..c487c76 --- /dev/null +++ b/mvp/client/ui/vite.config.mjs.timestamp-1720871382103-708d65f7c40d4.mjs @@ -0,0 +1,54 @@ +// vite.config.mjs +import { defineConfig } from "file:///C:/Users/LM2P/Documents/000_programming/000-projects/pdm-game/mvp/client/ui/node_modules/vite/dist/node/index.js"; +import { svelte } from "file:///C:/Users/LM2P/Documents/000_programming/000-projects/pdm-game/mvp/client/ui/node_modules/@sveltejs/vite-plugin-svelte/src/index.js"; +import { run } from "file:///C:/Users/LM2P/Documents/000_programming/000-projects/pdm-game/mvp/client/ui/node_modules/vite-plugin-run/dist/index.mjs"; +import * as path from "path"; +var __vite_injected_original_dirname = "C:\\Users\\LM2P\\Documents\\000_programming\\000-projects\\pdm-game\\mvp\\client\\ui"; +var isTest = process.env.NODE_ENV === "test"; +var vite_config_default = defineConfig({ + resolve: { + alias: { + src: path.resolve(__vite_injected_original_dirname, "./src") + }, + conditions: isTest ? ["browser"] : [] + }, + plugins: [ + svelte({ hot: !process.env.VITEST }), + run({ + silent: !!process.env.VITEST, + input: [ + { + name: "typecheck", + run: ["npm", "run", "check"], + pattern: ["src/**/*.ts", "src/**/*.svelte"] + } + ] + }) + ], + server: { + port: isTest ? 8678 : 5173, + proxy: isTest ? void 0 : { + "/api": { + target: "http://localhost:8000", + changeOrigin: false + } + } + }, + build: { + outDir: "build", + target: "es2020", + cssCodeSplit: false + }, + optimizeDeps: { + include: isTest ? ["@testing-library/svelte", "chai"] : void 0 + }, + test: { + globals: true, + environment: "jsdom", + setupFiles: "src/setup-tests.ts" + } +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcubWpzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWy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