Skip to content

Commit 2a3febf

Browse files
authored
Merge pull request #7651 from QwikDev/v2-merge-main
chore: merge main into v2
2 parents ec3599a + e8e553f commit 2a3febf

File tree

50 files changed

+489
-215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+489
-215
lines changed

.changeset/gold-colts-change.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@builder.io/qwik': patch
3+
---
4+
5+
FIX: assetsDir and debug:true will no longer break your application.

.changeset/good-mammals-grab.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@builder.io/qwik': minor
3+
---
4+
5+
FIX: the preloader bundle graph file is now built as an asset. This is cleaner and avoids i18n translation of the file.

.changeset/real-cities-fold.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@builder.io/qwik': patch
3+
---
4+
5+
FEAT: q-manifest.json now also includes the generated assets

e2e/adapters-e2e/vite.config.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,9 @@ errorOnDuplicatesPkgDeps(devDependencies, dependencies);
2020
* Note that Vite normally starts from `index.html` but the qwikRouter plugin makes start at
2121
* `src/entry.ssr.tsx` instead.
2222
*/
23-
export default defineConfig(({ command, mode }): UserConfig => {
23+
export default defineConfig((): UserConfig => {
2424
return {
25-
plugins: [
26-
qwikRouter(),
27-
qwikVite(),
28-
tsconfigPaths({
29-
root: '.',
30-
}),
31-
],
25+
plugins: [qwikRouter(), qwikVite(), tsconfigPaths({ root: '.' })],
3226
// This tells Vite which dependencies to pre-build in dev mode.
3327
optimizeDeps: {
3428
// Put problematic deps that break bundling here, mostly those with binaries.

e2e/qwik-cli-e2e/vite.config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if (process.env.CI) {
2626
}
2727

2828
export default defineConfig({
29-
plugins: [tsconfigPaths({ ignoreConfigErrors: true, root: '../../' })],
29+
plugins: [tsconfigPaths({ root: '../../' })],
3030
test: {
3131
include: ['./tests/*.spec.?(c|m)[jt]s?(x)'],
3232
setupFiles: ['./utils/setup.ts'],

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106
"@vitejs/plugin-basic-ssl": "2.0.0",
107107
"all-contributors-cli": "6.26.1",
108108
"brotli": "1.3.3",
109-
"concurrently": "8.2.2",
110109
"create-qwik": "workspace:*",
111110
"cross-spawn": "7.0.3",
112111
"csstype": "3.1.3",
@@ -220,7 +219,7 @@
220219
"release.prepare": "pnpm build --prepare-release",
221220
"serve": "tsx --require ./scripts/runBefore.ts --inspect --conditions=development starters/dev-server.ts 3300",
222221
"serve.debug": "tsx --require ./scripts/runBefore.ts --inspect-brk --conditions=development starters/dev-server.ts 3300",
223-
"start": "concurrently \"npm:build.watch\" \"npm:tsc.watch\" -n build,tsc -c green,cyan",
222+
"start": "pnpm run --stream \"/.*\\.watch/\"",
224223
"test": "pnpm build.full && pnpm test.unit && pnpm test.e2e",
225224
"test.e2e": "pnpm test.e2e.chromium && pnpm test.e2e.webkit && test.e2e.integrations",
226225
"test.e2e.chromium": "playwright test starters --browser=chromium --config starters/playwright.config.ts",

packages/docs/src/repl/repl-options.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const ReplOptions = ({ input, versions, qwikVersion }: ReplOptionsProps)
2222
/>
2323

2424
<StoreBoolean label="Debug" inputProp="debug" input={input} />
25+
<StoreBoolean label="Preloader" inputProp="preloader" input={input} />
2526
</div>
2627
);
2728
};

packages/docs/src/repl/repl-share-url.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const dataDefaults: PlaygroundShareUrl = {
77
buildMode: 'development',
88
entryStrategy: 'segment',
99
files: [],
10+
preloader: false,
1011
};
1112
export const parsePlaygroundShareUrl = (shareable: string) => {
1213
if (typeof shareable === 'string' && shareable.length > 0) {
@@ -27,6 +28,10 @@ export const parsePlaygroundShareUrl = (shareable: string) => {
2728
if (ENTRY_STRATEGY_OPTIONS.includes(entryStrategy)) {
2829
data.entryStrategy = entryStrategy;
2930
}
31+
const preloader = params.get('preloader')!;
32+
if (preloader !== null) {
33+
data.preloader = true;
34+
}
3035

3136
if (params.has('files')) {
3237
// Old URLs that didn't compress
@@ -129,6 +134,13 @@ export const createPlaygroundShareUrl = (data: PlaygroundShareUrl, pathname = '/
129134
if (data.entryStrategy !== dataDefaults.entryStrategy) {
130135
params.set('entryStrategy', data.entryStrategy);
131136
}
137+
if (data.preloader !== dataDefaults.preloader) {
138+
if (data.preloader) {
139+
params.set('preloader', '');
140+
} else {
141+
params.delete('preloader');
142+
}
143+
}
132144

133145
params.set('f', compressFiles(data.files));
134146

@@ -184,4 +196,5 @@ interface PlaygroundShareUrl {
184196
buildMode: any;
185197
entryStrategy: any;
186198
files: any[];
199+
preloader?: boolean;
187200
}

packages/docs/src/repl/repl-share-url.unit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const data = {
2424
code: 'console.log("bar");',
2525
},
2626
],
27+
preloader: false,
2728
};
2829
test('filesToStr', () => {
2930
assert.equal(

packages/docs/src/repl/repl.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ export const Repl = component$((props: ReplProps) => {
108108
track(() => input.files);
109109
track(() => input.version);
110110
track(() => input.debug);
111+
track(() => input.preloader);
111112
track(() => store.serverWindow);
112113

113114
sendUserUpdateToReplServer(input, store);
@@ -210,6 +211,7 @@ export const sendUserUpdateToReplServer = (input: ReplAppInput, store: ReplStore
210211
version: input.version,
211212
serverUrl: store.serverUrl,
212213
deps: getDependencies(input),
214+
preloader: !!input.preloader,
213215
},
214216
};
215217

0 commit comments

Comments
 (0)