-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts.timestamp-1710732962640-8394ea073ec4b.mjs
95 lines (93 loc) · 11.1 KB
/
vite.config.ts.timestamp-1710732962640-8394ea073ec4b.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// vite.config.ts
import { defineConfig } from "file:///S:/Development/nightcoreradio/node_modules/vite/dist/node/index.js";
import { qwikVite } from "file:///S:/Development/nightcoreradio/node_modules/@builder.io/qwik/optimizer.mjs";
import { qwikCity } from "file:///S:/Development/nightcoreradio/node_modules/@builder.io/qwik-city/vite/index.mjs";
import tsconfigPaths from "file:///S:/Development/nightcoreradio/node_modules/vite-tsconfig-paths/dist/index.mjs";
// package.json
var package_default = {
name: "my-qwik-basic-starter",
description: "Demo App with Routing built-in (recommended)",
engines: {
node: "^18.17.0 || ^20.3.0 || >=21.0.0"
},
"engines-annotation": "Mostly required by sharp which needs a Node-API v9 compatible runtime",
private: true,
trustedDependencies: [
"sharp"
],
"trustedDependencies-annotation": "Needed for bun to allow running install scripts",
type: "module",
scripts: {
build: "qwik build",
"build.client": "vite build",
"build.preview": "vite build --ssr src/entry.preview.tsx",
"build.types": "tsc --incremental --noEmit",
deploy: `echo 'Run "npm run qwik add" to install a server adapter'`,
dev: "vite --mode ssr",
"dev.debug": "node --inspect-brk ./node_modules/vite/bin/vite.js --mode ssr --force",
fmt: "prettier --write .",
"fmt.check": "prettier --check .",
lint: 'eslint "src/**/*.ts*"',
preview: "qwik build preview && vite preview --open",
start: "vite --open --mode ssr",
qwik: "qwik"
},
devDependencies: {
"@builder.io/qwik": "^1.5.1",
"@builder.io/qwik-city": "^1.5.1",
"@types/eslint": "^8.56.5",
"@types/node": "^20.11.24",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
autoprefixer: "^10.4.18",
eslint: "^8.57.0",
"eslint-plugin-qwik": "^1.5.1",
postcss: "^8.4.36",
prettier: "^3.2.5",
tailwindcss: "^3.4.1",
typescript: "5.3.3",
undici: "*",
vite: "^5.1.4",
"vite-tsconfig-paths": "^4.2.1"
}
};
// vite.config.ts
var { dependencies = {}, devDependencies = {} } = package_default;
var vite_config_default = defineConfig(({ command, mode }) => {
return {
plugins: [qwikCity(), qwikVite(), tsconfigPaths()],
// This tells Vite which dependencies to pre-build in dev mode.
optimizeDeps: {
// Put problematic deps that break bundling here, mostly those with binaries.
// For example ['better-sqlite3'] if you use that in server functions.
exclude: []
},
// This tells Vite how to bundle the server code.
ssr: command === "build" && mode === "production" ? {
// All dev dependencies should be bundled in the server build
noExternal: Object.keys(devDependencies),
// Anything marked as a dependency will not be bundled
// These should only be production binary deps (including deps of deps), CLI deps, and their module graph
// If a dep-of-dep needs to be external, add it here
// For example, if something uses `bcrypt` but you don't have it as a dep, you can write
// external: [...Object.keys(dependencies), 'bcrypt']
external: Object.keys(dependencies)
} : void 0,
server: {
headers: {
// Don't cache the server response in dev mode
"Cache-Control": "public, max-age=0"
}
},
preview: {
headers: {
// Do cache the server response in preview (non-adapter production build)
"Cache-Control": "public, max-age=600"
}
}
};
});
export {
vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicGFja2FnZS5qc29uIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiUzpcXFxcRGV2ZWxvcG1lbnRcXFxcbmlnaHRjb3JlcmFkaW9cIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPS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