@phreshos/cli 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,38 +0,0 @@
1
- import packageConfig from "./package.json" with { type: "json" }
2
- import react from "@vitejs/plugin-react"
3
- import { defineConfig } from "vite"
4
- import { resolve } from "node:path"
5
-
6
- export const externalDependencies: (keyof typeof packageConfig.dependencies)[] = [
7
-
8
- // Add packages here that should NOT be bundled during server, Example: "sqlite3"
9
- ]
10
-
11
- export default defineConfig(function (config) {
12
-
13
- return {
14
- base: "./",
15
- resolve: {
16
- tsconfigPaths: true,
17
- dedupe: ["react"]
18
- },
19
- server: {
20
- cors: true,
21
- port: 5200,
22
- strictPort: true
23
- },
24
- root: config.isSsrBuild ? "source/server" : "source/client",
25
- plugins: config.isSsrBuild ? [] : [react()],
26
- ssr: {
27
- noExternal: true,
28
- external: externalDependencies
29
- },
30
- build: {
31
- emptyOutDir: true,
32
- rolldownOptions: {
33
- input: config.isSsrBuild ? "main.ts" : "index.html"
34
- },
35
- outDir: resolve(import.meta.dirname, config.isSsrBuild ? "dist/server" : "dist/client"),
36
- }
37
- }
38
- })