Skip to content

Commit 06a42ce

Browse files
authored
chore(website): bump to qwik 1.7.3 + entry files output (#926)
1 parent dc430d6 commit 06a42ce

File tree

3 files changed

+64
-47
lines changed

3 files changed

+64
-47
lines changed

apps/website/vite.config.ts

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@ import { qwikNxVite } from 'qwik-nx/plugins';
44
import { defineConfig } from 'vite';
55
import tsconfigPaths from 'vite-tsconfig-paths';
66
import { recmaProvideComponents } from './recma-provide-components';
7+
import { isDev } from '@builder.io/qwik/build';
78

89
export default defineConfig(async () => {
910
const { default: rehypePrettyCode } = await import('rehype-pretty-code');
1011
const { visit } = await import('unist-util-visit');
1112

12-
// Commented out for qwik v1.7.0
13-
// let output: any = {};
14-
// if (!isDev) {
15-
// // Client-specific configuration
16-
// output = {
17-
// // Customize the client build structure
18-
// entryFileNames: ({ name }: any) => {
19-
// if (name.startsWith('entry')) {
20-
// return '[name].js';
21-
// }
22-
// return `build/[name]-[hash].js`;
23-
// },
24-
// chunkFileNames: () => {
25-
// return `build/[name]-[hash].js`;
26-
// },
27-
// assetFileNames: `build/[name]-[hash].[ext]`,
28-
// };
29-
// }
13+
let output: any = {};
14+
if (!isDev) {
15+
// Client-specific configuration
16+
output = {
17+
// Customize the client build structure
18+
entryFileNames: ({ name }: any) => {
19+
if (name.startsWith('entry')) {
20+
return '[name].js';
21+
}
22+
return `build/[name]-[hash].js`;
23+
},
24+
chunkFileNames: () => {
25+
return `build/[name]-[hash].js`;
26+
},
27+
assetFileNames: `build/[name]-[hash].[ext]`,
28+
};
29+
}
3030

3131
return {
3232
plugins: [
@@ -95,10 +95,9 @@ export default defineConfig(async () => {
9595
},
9696
build: {
9797
target: 'es2022',
98-
// Commented out for qwik v1.7.0
99-
// rollupOptions: {
100-
// output,
101-
// },
98+
rollupOptions: {
99+
output,
100+
},
102101
},
103102
preview: {
104103
headers: {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"packageManager": "[email protected]",
4545
"devDependencies": {
4646
"@axe-core/playwright": "^4.9.1",
47-
"@builder.io/qwik": "^1.7.2",
48-
"@builder.io/qwik-city": "^1.7.2",
47+
"@builder.io/qwik": "1.7.3",
48+
"@builder.io/qwik-city": "1.7.3",
4949
"@changesets/cli": "^2.27.3",
5050
"@changesets/get-github-info": "^0.6.0",
5151
"@changesets/types": "^6.0.0",
@@ -105,7 +105,7 @@
105105
"eslint-config-prettier": "^9.1.0",
106106
"eslint-plugin-cypress": "^3.2.0",
107107
"eslint-plugin-playwright": "^1.6.2",
108-
"eslint-plugin-qwik": "^1.7.2",
108+
"eslint-plugin-qwik": "1.7.3",
109109
"focus-trap": "7.5.4",
110110
"jest": "^29.7.0",
111111
"jest-environment-jsdom": "^29.7.0",

pnpm-lock.yaml

Lines changed: 40 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)