From f9ee425e5426c0b5f17e98abe222545884c58a7f Mon Sep 17 00:00:00 2001 From: jean-philippe Date: Thu, 15 Aug 2024 12:01:48 -0400 Subject: [PATCH 01/23] fix a tsc issue --- packages/docs/src/repl/worker/app-bundle-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/src/repl/worker/app-bundle-client.ts b/packages/docs/src/repl/worker/app-bundle-client.ts index 74ff58fb243..7c8cbf4befd 100644 --- a/packages/docs/src/repl/worker/app-bundle-client.ts +++ b/packages/docs/src/repl/worker/app-bundle-client.ts @@ -19,7 +19,7 @@ export const appBundleClient = async ( srcInputs: getInputs(options), // Older versions don't support `segment` entryStrategy: - options.entryStrategy.type === 'segment' ? { type: 'hook' } : options.entryStrategy, + options.entryStrategy?.type === 'segment' ? { type: 'hook' } : options.entryStrategy, manifestOutput: (m) => { result.manifest = m; }, From 24505397b3101a8550f1513228ad6c040ffa58e3 Mon Sep 17 00:00:00 2001 From: GrandSchtroumpf Date: Thu, 10 Oct 2024 09:47:48 +0200 Subject: [PATCH 02/23] feat(state) expose unwrapProxy as low level API --- packages/qwik/src/core/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/qwik/src/core/index.ts b/packages/qwik/src/core/index.ts index cdddcb46581..51b3fe0d958 100644 --- a/packages/qwik/src/core/index.ts +++ b/packages/qwik/src/core/index.ts @@ -124,7 +124,7 @@ export type { ErrorBoundaryStore } from './render/error-handling'; export type { ValueOrPromise } from './util/types'; export type { Signal, ReadonlySignal } from './state/signal'; export type { NoSerialize } from './state/common'; -export { noSerialize } from './state/common'; +export { noSerialize, unwrapProxy } from './state/common'; export { isSignal } from './state/signal'; export { version } from './version'; From 13d7936d8bd443b685682cd4c846b7377fa568b8 Mon Sep 17 00:00:00 2001 From: GrandSchtroumpf Date: Thu, 10 Oct 2024 09:52:29 +0200 Subject: [PATCH 03/23] update jsdoc --- packages/qwik/src/core/state/common.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/qwik/src/core/state/common.ts b/packages/qwik/src/core/state/common.ts index 23ccff1b208..05149a24c79 100644 --- a/packages/qwik/src/core/state/common.ts +++ b/packages/qwik/src/core/state/common.ts @@ -170,7 +170,12 @@ export const isConnected = (sub: SubscriberEffect | SubscriberHost): boolean => } }; -/** @public */ +/** + * Get the target value of the Proxy. Useful if you want to clone a store (structureClone, + * IndexedDB,...) + * + * @public + */ export const unwrapProxy = (proxy: T): T => { return isObject(proxy) ? (getProxyTarget(proxy) ?? proxy) : proxy; }; From 6b9917dd8357054d1dc69b42cecac2c988e26e1a Mon Sep 17 00:00:00 2001 From: GrandSchtroumpf Date: Thu, 10 Oct 2024 09:55:18 +0200 Subject: [PATCH 04/23] run api.upate --- packages/docs/src/routes/api/qwik/api.json | 14 ++++++++ packages/docs/src/routes/api/qwik/index.md | 39 ++++++++++++++++++++++ packages/qwik/src/core/api.md | 3 ++ 3 files changed, 56 insertions(+) diff --git a/packages/docs/src/routes/api/qwik/api.json b/packages/docs/src/routes/api/qwik/api.json index c0ea1e399df..15f616b1530 100644 --- a/packages/docs/src/routes/api/qwik/api.json +++ b/packages/docs/src/routes/api/qwik/api.json @@ -3010,6 +3010,20 @@ "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/use/use-core.ts", "mdFile": "qwik.untrack.md" }, + { + "name": "unwrapProxy", + "id": "unwrapproxy", + "hierarchy": [ + { + "name": "unwrapProxy", + "id": "unwrapproxy" + } + ], + "kind": "Function", + "content": "Get the target value of the Proxy. Useful if you want to clone a store (structureClone, IndexedDB,...)\n\n\n```typescript\nunwrapProxy: (proxy: T) => T\n```\n\n\n\n\n
\n\nParameter\n\n\n\n\nType\n\n\n\n\nDescription\n\n\n
\n\nproxy\n\n\n\n\nT\n\n\n\n\n\n
\n**Returns:**\n\nT", + "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/state/common.ts", + "mdFile": "qwik.unwrapproxy.md" + }, { "name": "useComputed$", "id": "usecomputed_", diff --git a/packages/docs/src/routes/api/qwik/index.md b/packages/docs/src/routes/api/qwik/index.md index 62e1aa35218..c52b33c86fa 100644 --- a/packages/docs/src/routes/api/qwik/index.md +++ b/packages/docs/src/routes/api/qwik/index.md @@ -10119,6 +10119,45 @@ T [Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/use/use-core.ts) +## unwrapProxy + +Get the target value of the Proxy. Useful if you want to clone a store (structureClone, IndexedDB,...) + +```typescript +unwrapProxy: (proxy: T) => T; +``` + + + +
+ +Parameter + + + +Type + + + +Description + +
+ +proxy + + + +T + + + +
+**Returns:** + +T + +[Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/state/common.ts) + ## useComputed$ Hook that returns a read-only signal that updates when signals used in the `ComputedFn` change. diff --git a/packages/qwik/src/core/api.md b/packages/qwik/src/core/api.md index 82e20f25229..6b76db77b62 100644 --- a/packages/qwik/src/core/api.md +++ b/packages/qwik/src/core/api.md @@ -1627,6 +1627,9 @@ export interface TrackHTMLAttributes extends Attrs<'track', T // @public export const untrack: (fn: () => T) => T; +// @public +export const unwrapProxy: (proxy: T) => T; + // @public export const useComputed$: (qrl: ComputedFn) => Signal>; From 20214ef94b5304d091dd94dfe07a95dc08a1c666 Mon Sep 17 00:00:00 2001 From: GrandSchtroumpf Date: Thu, 10 Oct 2024 10:11:50 +0200 Subject: [PATCH 05/23] run pnpm change --- .changeset/short-cycles-bake.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/short-cycles-bake.md diff --git a/.changeset/short-cycles-bake.md b/.changeset/short-cycles-bake.md new file mode 100644 index 00000000000..eb4705c636a --- /dev/null +++ b/.changeset/short-cycles-bake.md @@ -0,0 +1,5 @@ +--- +'@builder.io/qwik': patch +--- + +Expose unwrapProxy as a low level API From ca377f9e176970adc1b76e3f9813b1197b41b026 Mon Sep 17 00:00:00 2001 From: GrandSchtroumpf Date: Mon, 14 Oct 2024 10:01:48 +0200 Subject: [PATCH 06/23] change export to unwrapStore --- packages/docs/src/routes/api/qwik/api.json | 10 +++++----- packages/docs/src/routes/api/qwik/index.md | 2 +- packages/qwik/src/core/api.md | 2 +- packages/qwik/src/core/index.ts | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/docs/src/routes/api/qwik/api.json b/packages/docs/src/routes/api/qwik/api.json index 15f616b1530..72c5a93de0c 100644 --- a/packages/docs/src/routes/api/qwik/api.json +++ b/packages/docs/src/routes/api/qwik/api.json @@ -3011,18 +3011,18 @@ "mdFile": "qwik.untrack.md" }, { - "name": "unwrapProxy", - "id": "unwrapproxy", + "name": "unwrapStore", + "id": "unwrapstore", "hierarchy": [ { - "name": "unwrapProxy", - "id": "unwrapproxy" + "name": "unwrapStore", + "id": "unwrapstore" } ], "kind": "Function", "content": "Get the target value of the Proxy. Useful if you want to clone a store (structureClone, IndexedDB,...)\n\n\n```typescript\nunwrapProxy: (proxy: T) => T\n```\n\n\n\n\n
\n\nParameter\n\n\n\n\nType\n\n\n\n\nDescription\n\n\n
\n\nproxy\n\n\n\n\nT\n\n\n\n\n\n
\n**Returns:**\n\nT", "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/state/common.ts", - "mdFile": "qwik.unwrapproxy.md" + "mdFile": "qwik.unwrapstore.md" }, { "name": "useComputed$", diff --git a/packages/docs/src/routes/api/qwik/index.md b/packages/docs/src/routes/api/qwik/index.md index c52b33c86fa..69a948f1463 100644 --- a/packages/docs/src/routes/api/qwik/index.md +++ b/packages/docs/src/routes/api/qwik/index.md @@ -10119,7 +10119,7 @@ T [Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/use/use-core.ts) -## unwrapProxy +## unwrapStore Get the target value of the Proxy. Useful if you want to clone a store (structureClone, IndexedDB,...) diff --git a/packages/qwik/src/core/api.md b/packages/qwik/src/core/api.md index 6b76db77b62..430b1328f75 100644 --- a/packages/qwik/src/core/api.md +++ b/packages/qwik/src/core/api.md @@ -1628,7 +1628,7 @@ export interface TrackHTMLAttributes extends Attrs<'track', T export const untrack: (fn: () => T) => T; // @public -export const unwrapProxy: (proxy: T) => T; +export const unwrapStore: (proxy: T) => T; // @public export const useComputed$: (qrl: ComputedFn) => Signal>; diff --git a/packages/qwik/src/core/index.ts b/packages/qwik/src/core/index.ts index 51b3fe0d958..e3bb1fe01de 100644 --- a/packages/qwik/src/core/index.ts +++ b/packages/qwik/src/core/index.ts @@ -124,7 +124,7 @@ export type { ErrorBoundaryStore } from './render/error-handling'; export type { ValueOrPromise } from './util/types'; export type { Signal, ReadonlySignal } from './state/signal'; export type { NoSerialize } from './state/common'; -export { noSerialize, unwrapProxy } from './state/common'; +export { noSerialize, unwrapProxy as unwrapStore } from './state/common'; export { isSignal } from './state/signal'; export { version } from './version'; From 9450a762ef1429915f003c3d1c0f94fb4bbf810d Mon Sep 17 00:00:00 2001 From: jean-philippe martel Date: Mon, 14 Oct 2024 15:49:23 -0400 Subject: [PATCH 07/23] Add execution order in routing --- .../src/routes/docs/(qwikcity)/routing/index.mdx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/docs/src/routes/docs/(qwikcity)/routing/index.mdx b/packages/docs/src/routes/docs/(qwikcity)/routing/index.mdx index 8f7b2e53adf..5a37c6f6f60 100644 --- a/packages/docs/src/routes/docs/(qwikcity)/routing/index.mdx +++ b/packages/docs/src/routes/docs/(qwikcity)/routing/index.mdx @@ -191,6 +191,20 @@ For the route `https://example.com/admin`, the `onRequest` methods will be execu An `onRequest` handler in `src/routes/index.tsx` doesn't get executed. +### Full Execution order + +```bash +1 --> [entry.express.ts or entry.preview.ts] +2 --> [plugin@some-name.ts] +3 --> [server$] +4 --> [entry.ssr.ts] +5 --> [root.tsx] +6 --> [layout.tsx onRequest -> onGet/onHttpVerb] +7 --> [globalLoaders] +8 --> [routeLoaders] +9 --> [jsx/components on a route] +``` + ### Nested Layouts Layouts also **provide a way to add common UI to the rendered page**. For example, if you want to add a common header to all of the routes, add a Header component to the root layout. From e8dbc8af6ba5024f5cab91f1fb4d9566e7584bf1 Mon Sep 17 00:00:00 2001 From: jean-philippe martel Date: Mon, 14 Oct 2024 15:50:51 -0400 Subject: [PATCH 08/23] Added comment about the plugin ordering --- packages/docs/src/routes/docs/(qwikcity)/routing/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/src/routes/docs/(qwikcity)/routing/index.mdx b/packages/docs/src/routes/docs/(qwikcity)/routing/index.mdx index 5a37c6f6f60..4ae46fcd87f 100644 --- a/packages/docs/src/routes/docs/(qwikcity)/routing/index.mdx +++ b/packages/docs/src/routes/docs/(qwikcity)/routing/index.mdx @@ -195,7 +195,7 @@ An `onRequest` handler in `src/routes/index.tsx` doesn't get executed. ```bash 1 --> [entry.express.ts or entry.preview.ts] -2 --> [plugin@some-name.ts] +2 --> [plugin@some-name.ts] #Alphabetical order 3 --> [server$] 4 --> [entry.ssr.ts] 5 --> [root.tsx] From 62523c39a4d0ff22604ae7a15868037ac35d4aa1 Mon Sep 17 00:00:00 2001 From: Wout Mertens Date: Fri, 25 Oct 2024 16:13:30 +0200 Subject: [PATCH 09/23] chore(fastify starter): allow v5 (#6975) --- starters/adapters/fastify/src/plugins/fastify-qwik.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starters/adapters/fastify/src/plugins/fastify-qwik.ts b/starters/adapters/fastify/src/plugins/fastify-qwik.ts index ed961b98a26..35a7ef9beb3 100644 --- a/starters/adapters/fastify/src/plugins/fastify-qwik.ts +++ b/starters/adapters/fastify/src/plugins/fastify-qwik.ts @@ -39,4 +39,4 @@ const qwikPlugin: FastifyPluginAsync = async ( }); }; -export default fastifyPlugin(qwikPlugin, { fastify: "4.x" }); +export default fastifyPlugin(qwikPlugin, { fastify: ">=4.0.0 <6.0.0" }); From fbce7fc95c1d12744bb8f878cacac0d63ce1478a Mon Sep 17 00:00:00 2001 From: Wout Mertens Date: Fri, 25 Oct 2024 22:15:59 +0200 Subject: [PATCH 10/23] fix(ssg): better error reporting --- .changeset/lemon-gorillas-whisper.md | 5 +++++ packages/qwik-city/src/static/main-thread.ts | 2 +- packages/qwik-city/src/static/node/node-main.ts | 2 +- packages/qwik-city/src/static/node/node-system.ts | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .changeset/lemon-gorillas-whisper.md diff --git a/.changeset/lemon-gorillas-whisper.md b/.changeset/lemon-gorillas-whisper.md new file mode 100644 index 00000000000..d3d0891ee20 --- /dev/null +++ b/.changeset/lemon-gorillas-whisper.md @@ -0,0 +1,5 @@ +--- +'@builder.io/qwik-city': patch +--- + +FIX: SSG errors now show the path that failed diff --git a/packages/qwik-city/src/static/main-thread.ts b/packages/qwik-city/src/static/main-thread.ts index 89462758491..be77f87b928 100644 --- a/packages/qwik-city/src/static/main-thread.ts +++ b/packages/qwik-city/src/static/main-thread.ts @@ -112,7 +112,7 @@ export async function mainThread(sys: System) { if (result.error) { const err = new Error(result.error.message); err.stack = result.error.stack; - log.error(`\n${bold(red('Error during SSG'))}`); + log.error(`\n${bold(red(`!!! ${result.pathname}: Error during SSG`))}`); log.error(red(err.message)); log.error(` Pathname: ${magenta(staticRoute.pathname)}`); Object.assign(formatError(err), { diff --git a/packages/qwik-city/src/static/node/node-main.ts b/packages/qwik-city/src/static/node/node-main.ts index 759cbefbe6e..4bf079ba0b6 100644 --- a/packages/qwik-city/src/static/node/node-main.ts +++ b/packages/qwik-city/src/static/node/node-main.ts @@ -142,7 +142,7 @@ export async function createNodeMainProcess(sys: System, opts: StaticGenerateOpt }); nodeWorker.on('error', (e) => { - console.error(`worker error: ${e}`); + console.error(`worker error`, e); }); nodeWorker.on('exit', (code) => { diff --git a/packages/qwik-city/src/static/node/node-system.ts b/packages/qwik-city/src/static/node/node-system.ts index 14904b15f54..efb61bd7321 100644 --- a/packages/qwik-city/src/static/node/node-system.ts +++ b/packages/qwik-city/src/static/node/node-system.ts @@ -99,7 +99,7 @@ export const access = async (path: string) => { try { await fs.promises.access(path); return true; - } catch (e) { + } catch { return false; } }; From faad538702c886494a41b28e6e80477e2da51880 Mon Sep 17 00:00:00 2001 From: Charles Stover <155327475+CharlesStover@users.noreply.github.com> Date: Fri, 25 Oct 2024 13:47:47 -0700 Subject: [PATCH 11/23] Update debouncer type accuracy --- .../routes/docs/cookbook/debouncer/index.mdx | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/packages/docs/src/routes/docs/cookbook/debouncer/index.mdx b/packages/docs/src/routes/docs/cookbook/debouncer/index.mdx index fbedeb1aa72..4388ff9d1eb 100644 --- a/packages/docs/src/routes/docs/cookbook/debouncer/index.mdx +++ b/packages/docs/src/routes/docs/cookbook/debouncer/index.mdx @@ -31,12 +31,17 @@ The Qwik framework provides unique capabilities for managing state and effects i ```tsx -export const useDebouncer = (fn: QRL<(args: any) => void>, delay: number) => { +export const useDebouncer = ( + fn: QRL<(...args: A) => R>, + delay: number, +): QRL<(...args: A) => void> => { const timeoutId = useSignal(); - return $((args: any) => { - clearTimeout(timeoutId.value); - timeoutId.value = Number(setTimeout(() => fn(args), delay)); + return $((...args: A): void => { + window.clearTimeout(timeoutId.value); + timeoutId.value = window.setTimeout((): void => { + void fn(...args); + }, delay); }); }; ``` @@ -93,12 +98,17 @@ We can leverage Qwik's `implicit$FirstArg` function to create a `useDebouncer$` This is how Qwik actually implements all of its built-in $ hooks. ```tsx -export const useDebouncerQrl = (fn: QRL<(args: any) => void>, delay: number) => { +export const useDebouncerQrl = ( + fn: QRL<(...args: A) => R>, + delay: number, +): QRL<(...args: A) => void> => { const timeoutId = useSignal(); - return $((args: any) => { - clearTimeout(timeoutId.value); - timeoutId.value = Number(setTimeout(() => fn(args), delay)); + return $((...args: A): void => { + window.clearTimeout(timeoutId.value); + timeoutId.value = window.setTimeout((): void => { + void fn(...args); + }, delay); }); }; From c7aa4e6355632be2d7c7bb9f093efa2385de259c Mon Sep 17 00:00:00 2001 From: Wout Mertens Date: Sun, 27 Oct 2024 10:07:18 +0100 Subject: [PATCH 12/23] fix(dev): don't lowercase segment filenames This caused lookups of parents to fail due to the case not matching the case on disk. There's no reason to lowercase the segment names since they are virtual. It also makes the source panel in the devtools nicer to read. --- .changeset/funny-wasps-do.md | 5 ++ packages/qwik/src/build/index.dev.ts | 2 +- .../snapshots/qwik_core__test__example_1.snap | 18 ++-- .../qwik_core__test__example_10.snap | 6 +- .../qwik_core__test__example_11.snap | 18 ++-- .../snapshots/qwik_core__test__example_2.snap | 12 +-- .../snapshots/qwik_core__test__example_3.snap | 12 +-- .../snapshots/qwik_core__test__example_4.snap | 12 +-- .../snapshots/qwik_core__test__example_5.snap | 12 +-- .../snapshots/qwik_core__test__example_6.snap | 6 +- .../snapshots/qwik_core__test__example_7.snap | 18 ++-- .../snapshots/qwik_core__test__example_8.snap | 12 +-- .../snapshots/qwik_core__test__example_9.snap | 6 +- ...qwik_core__test__example_build_server.snap | 6 +- ...k_core__test__example_capture_imports.snap | 18 ++-- ...ore__test__example_capturing_fn_class.snap | 12 +-- .../qwik_core__test__example_class_name.snap | 6 +- ...est__example_custom_inlined_functions.snap | 24 ++--- .../qwik_core__test__example_dead_code.snap | 6 +- ...ik_core__test__example_default_export.snap | 12 +-- ..._example_default_export_invalid_ident.snap | 12 +-- .../qwik_core__test__example_dev_mode.snap | 12 +-- ...core__test__example_drop_side_effects.snap | 12 +-- ...st__example_explicit_ext_no_transpile.snap | 18 ++-- ..._test__example_explicit_ext_transpile.snap | 18 ++-- ...qwik_core__test__example_export_issue.snap | 12 +-- .../qwik_core__test__example_exports.snap | 12 +-- ...ore__test__example_fix_dynamic_import.snap | 6 +- ...e__test__example_functional_component.snap | 6 +- ..._test__example_functional_component_2.snap | 18 ++-- ...le_functional_component_capture_props.snap | 18 ++-- ...core__test__example_getter_generation.snap | 12 +-- ...ore__test__example_immutable_analysis.snap | 30 +++---- ..._core__test__example_import_assertion.snap | 6 +- ...ore__test__example_invalid_references.snap | 12 +-- ...__test__example_invalid_segment_expr1.snap | 18 ++-- .../qwik_core__test__example_jsx.snap | 12 +-- ...core__test__example_jsx_import_source.snap | 6 +- .../qwik_core__test__example_jsx_keyed.snap | 6 +- ...wik_core__test__example_jsx_keyed_dev.snap | 6 +- ...wik_core__test__example_jsx_listeners.snap | 78 ++++++++-------- ..._test__example_lightweight_functional.snap | 18 ++-- ...wik_core__test__example_manual_chunks.snap | 36 ++++---- ...wik_core__test__example_multi_capture.snap | 24 ++--- ...wik_core__test__example_noop_dev_mode.snap | 6 +- ...ore__test__example_of_synchronous_qrl.snap | 6 +- ...__example_preserve_filenames_segments.snap | 12 +-- .../qwik_core__test__example_prod_node.snap | 24 ++--- ...wik_core__test__example_qwik_conflict.snap | 30 +++---- .../qwik_core__test__example_qwik_react.snap | 12 +-- ...k_core__test__example_qwik_sdk_inline.snap | 90 +++++++++---------- ...k_core__test__example_renamed_exports.snap | 12 +-- .../qwik_core__test__example_server_auth.snap | 12 +-- .../qwik_core__test__example_spread_jsx.snap | 6 +- ...e__test__example_strip_exports_unused.snap | 6 +- ...ore__test__example_strip_exports_used.snap | 12 +-- ...core__test__example_strip_server_code.snap | 32 +++---- ...ore__test__example_transpile_jsx_only.snap | 12 +-- .../qwik_core__test__example_ts_enums.snap | 6 +- ...re__test__example_ts_enums_issue_1341.snap | 6 +- ...__test__example_ts_enums_no_transpile.snap | 6 +- ...core__test__example_use_client_effect.snap | 12 +-- ..._core__test__example_use_server_mount.snap | 36 ++++---- .../qwik_core__test__example_with_style.snap | 12 +-- ...qwik_core__test__example_with_tagname.snap | 12 +-- .../qwik_core__test__impure_template_fns.snap | 12 +-- .../snapshots/qwik_core__test__issue_150.snap | 18 ++-- .../qwik_core__test__issue_5008.snap | 12 +-- .../snapshots/qwik_core__test__issue_964.snap | 6 +- .../qwik_core__test__lib_mode_fn_signal.snap | 12 +-- .../qwik_core__test__relative_paths.snap | 18 ++-- ...wik_core__test__support_windows_paths.snap | 6 +- .../qwik/src/optimizer/core/src/transform.rs | 2 +- .../qwik/src/optimizer/src/plugins/plugin.ts | 18 ++-- .../optimizer/src/plugins/vite-dev-server.ts | 4 +- 75 files changed, 556 insertions(+), 545 deletions(-) create mode 100644 .changeset/funny-wasps-do.md diff --git a/.changeset/funny-wasps-do.md b/.changeset/funny-wasps-do.md new file mode 100644 index 00000000000..638547bcb7b --- /dev/null +++ b/.changeset/funny-wasps-do.md @@ -0,0 +1,5 @@ +--- +'@builder.io/qwik': patch +--- + +FIX: QRL segment filenames are no longer lowercased. This was giving trouble with parent lookups in dev mode and there was no good reason for it. diff --git a/packages/qwik/src/build/index.dev.ts b/packages/qwik/src/build/index.dev.ts index f8055694552..9cd3ef48eb8 100644 --- a/packages/qwik/src/build/index.dev.ts +++ b/packages/qwik/src/build/index.dev.ts @@ -1,4 +1,4 @@ -export { isBrowser, isServer } from './index'; +export { isBrowser, isServer } from '.'; /** * True when build is in dev mode. diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_1.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_1.snap index d6ef97224ff..8ea4b453e22 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_1.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_1.snap @@ -18,11 +18,11 @@ const renderHeader = component($(() => { return render; })); -============================= test.tsx_renderheader_zbbhwn4e8cg.tsx (ENTRY POINT)== +============================= test.tsx_renderHeader_zBbHWn4e8Cg.tsx (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; export const renderHeader_zBbHWn4e8Cg = ()=>{ - return
import("./test.tsx_renderheader_div_onclick_fv2uzal99u4"), "renderHeader_div_onClick_fV2uzAL99u4")}/>; + return
import("./test.tsx_renderHeader_div_onClick_fV2uzAL99u4"), "renderHeader_div_onClick_fV2uzAL99u4")}/>; }; export { _hW } from "@builder.io/qwik"; @@ -35,7 +35,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_renderHeader", "hash": "zBbHWn4e8Cg", - "canonicalFilename": "test.tsx_renderheader_zbbhwn4e8cg", + "canonicalFilename": "test.tsx_renderHeader_zBbHWn4e8Cg", "path": "", "extension": "tsx", "parent": null, @@ -48,7 +48,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_renderheader_component_u6kkv07sbpq.tsx (ENTRY POINT)== +============================= test.tsx_renderHeader_component_U6Kkv07sbpQ.tsx (ENTRY POINT)== export const renderHeader_component_U6Kkv07sbpQ = ()=>{ console.log("mount"); @@ -65,7 +65,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_renderHeader_component", "hash": "U6Kkv07sbpQ", - "canonicalFilename": "test.tsx_renderheader_component_u6kkv07sbpq", + "canonicalFilename": "test.tsx_renderHeader_component_U6Kkv07sbpQ", "path": "", "extension": "tsx", "parent": null, @@ -82,12 +82,12 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { qrl } from "@builder.io/qwik"; import { component } from '@builder.io/qwik'; -export const renderHeader = /*#__PURE__*/ qrl(()=>import("./test.tsx_renderheader_zbbhwn4e8cg"), "renderHeader_zBbHWn4e8Cg"); -const renderHeader = component(/*#__PURE__*/ qrl(()=>import("./test.tsx_renderheader_component_u6kkv07sbpq"), "renderHeader_component_U6Kkv07sbpQ")); +export const renderHeader = /*#__PURE__*/ qrl(()=>import("./test.tsx_renderHeader_zBbHWn4e8Cg"), "renderHeader_zBbHWn4e8Cg"); +const renderHeader = component(/*#__PURE__*/ qrl(()=>import("./test.tsx_renderHeader_component_U6Kkv07sbpQ"), "renderHeader_component_U6Kkv07sbpQ")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";AACA,SAAY,SAAS,QAAkB,mBAAmB;AAE1D,OAAO,MAAM,gHAIV;AACH,MAAM,eAAe\"}") -============================= test.tsx_renderheader_div_onclick_fv2uzal99u4.tsx (ENTRY POINT)== +============================= test.tsx_renderHeader_div_onClick_fV2uzAL99u4.tsx (ENTRY POINT)== export const renderHeader_div_onClick_fV2uzAL99u4 = (ctx)=>console.log(ctx); export { _hW } from "@builder.io/qwik"; @@ -101,7 +101,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_renderHeader_div_onClick", "hash": "fV2uzAL99u4", - "canonicalFilename": "test.tsx_renderheader_div_onclick_fv2uzal99u4", + "canonicalFilename": "test.tsx_renderHeader_div_onClick_fV2uzAL99u4", "path": "", "extension": "tsx", "parent": "renderHeader_zBbHWn4e8Cg", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_10.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_10.snap index cf580e16963..e9fdcaa36a5 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_10.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_10.snap @@ -26,7 +26,7 @@ const Header = $((decl1, {decl2}, [decl3]) => { ) }); -============================= project/test.tsx_header_wlr3xni6u38.tsx (ENTRY POINT)== +============================= project/test.tsx_Header_WlR3xnI6u38.tsx (ENTRY POINT)== export const Header_WlR3xnI6u38 = (decl1, { decl2 }, [decl3])=>{ ident1.no; @@ -59,7 +59,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/project/test.tsx\"],\"names\" "entry": null, "displayName": "test.tsx_Header", "hash": "WlR3xnI6u38", - "canonicalFilename": "test.tsx_header_wlr3xni6u38", + "canonicalFilename": "test.tsx_Header_WlR3xnI6u38", "path": "project", "extension": "tsx", "parent": null, @@ -75,7 +75,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/project/test.tsx\"],\"names\" ============================= project/test.tsx == import { qrl } from "@builder.io/qwik"; -/*#__PURE__*/ qrl(()=>import("./test.tsx_header_wlr3xni6u38"), "Header_WlR3xnI6u38"); +/*#__PURE__*/ qrl(()=>import("./test.tsx_Header_WlR3xnI6u38"), "Header_WlR3xnI6u38"); Some("{\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\"}") diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_11.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_11.snap index c50db0ac576..6059b3e89ae 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_11.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_11.snap @@ -25,7 +25,7 @@ export const App = component$(() => { ); }); -============================= project/test.tsx_header_component_header_onclick_kjd9tcnknxy.tsx == +============================= project/test.tsx_Header_component_Header_onClick_KjD9TCNkNxY.tsx == import dep3 from "dep3/something"; export const Header_component_Header_onClick_KjD9TCNkNxY = (ev)=>dep3(ev); @@ -40,7 +40,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/project/test.tsx\"],\"names\" "entry": "entry_segments", "displayName": "test.tsx_Header_component_Header_onClick", "hash": "KjD9TCNkNxY", - "canonicalFilename": "test.tsx_header_component_header_onclick_kjd9tcnknxy", + "canonicalFilename": "test.tsx_Header_component_Header_onClick_KjD9TCNkNxY", "path": "project", "extension": "tsx", "parent": "Header_component_UVBJuFYfvDo", @@ -53,14 +53,14 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/project/test.tsx\"],\"names\" ] } */ -============================= project/test.tsx_header_component_uvbjufyfvdo.tsx == +============================= project/test.tsx_Header_component_UVBJuFYfvDo.tsx == import { Header } from "./test"; import { bar as bbar } from "../state"; import * as dep2 from "dep2"; import { qrl } from "@builder.io/qwik"; export const Header_component_UVBJuFYfvDo = ()=>{ - return
import("./test.tsx_header_component_header_onclick_kjd9tcnknxy"), "Header_component_Header_onClick_KjD9TCNkNxY")}> + return
import("./test.tsx_Header_component_Header_onClick_KjD9TCNkNxY"), "Header_component_Header_onClick_KjD9TCNkNxY")}> {dep2.stuff()}{bbar()}
; }; @@ -74,7 +74,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/project/test.tsx\"],\"names\" "entry": "entry_segments", "displayName": "test.tsx_Header_component", "hash": "UVBJuFYfvDo", - "canonicalFilename": "test.tsx_header_component_uvbjufyfvdo", + "canonicalFilename": "test.tsx_Header_component_UVBJuFYfvDo", "path": "project", "extension": "tsx", "parent": null, @@ -87,7 +87,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/project/test.tsx\"],\"names\" ] } */ -============================= project/test.tsx_app_component_wgkrhwxaqjs.tsx == +============================= project/test.tsx_App_component_wGkRHWXaqjs.tsx == import { Header } from "./test"; import { foo } from "../state"; @@ -104,7 +104,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/project/test.tsx\"],\"names\" "entry": "entry_segments", "displayName": "test.tsx_App_component", "hash": "wGkRHWXaqjs", - "canonicalFilename": "test.tsx_app_component_wgkrhwxaqjs", + "canonicalFilename": "test.tsx_App_component_wGkRHWXaqjs", "path": "project", "extension": "tsx", "parent": null, @@ -121,8 +121,8 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/project/test.tsx\"],\"names\" import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_header_component_uvbjufyfvdo"), "Header_component_UVBJuFYfvDo")); -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_wgkrhwxaqjs"), "App_component_wGkRHWXaqjs")); +export const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Header_component_UVBJuFYfvDo"), "Header_component_UVBJuFYfvDo")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_wGkRHWXaqjs"), "App_component_wGkRHWXaqjs")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/project/test.tsx\"],\"names\":[],\"mappings\":\";;AAMA,OAAO,MAAM,uBAAS,uHAMnB;AAEH,OAAO,MAAM,oBAAM,iHAIhB\"}") diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_2.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_2.snap index da84c60b04e..bbbb330f54b 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_2.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_2.snap @@ -14,12 +14,12 @@ export const Header = component$(() => { ); }); -============================= test.tsx_header_component_j4uyihabnr4.tsx (ENTRY POINT)== +============================= test.tsx_Header_component_J4uyIhaBNR4.tsx (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; export const Header_component_J4uyIhaBNR4 = ()=>{ console.log("mount"); - return
import("./test.tsx_header_component_div_onclick_i7ekvwh3674"), "Header_component_div_onClick_i7ekvWH3674")}/>; + return
import("./test.tsx_Header_component_div_onClick_i7ekvWH3674"), "Header_component_div_onClick_i7ekvWH3674")}/>; }; @@ -31,7 +31,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Header_component", "hash": "J4uyIhaBNR4", - "canonicalFilename": "test.tsx_header_component_j4uyihabnr4", + "canonicalFilename": "test.tsx_Header_component_J4uyIhaBNR4", "path": "", "extension": "tsx", "parent": null, @@ -48,11 +48,11 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_header_component_j4uyihabnr4"), "Header_component_J4uyIhaBNR4")); +export const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Header_component_J4uyIhaBNR4"), "Header_component_J4uyIhaBNR4")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAEA,OAAO,MAAM,uBAAS,uHAKnB\"}") -============================= test.tsx_header_component_div_onclick_i7ekvwh3674.tsx (ENTRY POINT)== +============================= test.tsx_Header_component_div_onClick_i7ekvWH3674.tsx (ENTRY POINT)== export const Header_component_div_onClick_i7ekvWH3674 = (ctx)=>console.log(ctx); export { _hW } from "@builder.io/qwik"; @@ -66,7 +66,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Header_component_div_onClick", "hash": "i7ekvWH3674", - "canonicalFilename": "test.tsx_header_component_div_onclick_i7ekvwh3674", + "canonicalFilename": "test.tsx_Header_component_div_onClick_i7ekvWH3674", "path": "", "extension": "tsx", "parent": "Header_component_J4uyIhaBNR4", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_3.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_3.snap index 9ca60457983..6040cbff402 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_3.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_3.snap @@ -17,12 +17,12 @@ export const App = () => { return Header; }); -============================= test.tsx_app_header_component_b9f3yeqco1w.tsx (ENTRY POINT)== +============================= test.tsx_App_Header_component_B9F3YeqcO1w.tsx (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; export const App_Header_component_B9F3YeqcO1w = ()=>{ console.log("mount"); - return
import("./test.tsx_app_header_component_div_onclick_ao7ui7iw6oq"), "App_Header_component_div_onClick_aO7uI7Iw6oQ")}/>; + return
import("./test.tsx_App_Header_component_div_onClick_aO7uI7Iw6oQ"), "App_Header_component_div_onClick_aO7uI7Iw6oQ")}/>; }; @@ -34,7 +34,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_Header_component", "hash": "B9F3YeqcO1w", - "canonicalFilename": "test.tsx_app_header_component_b9f3yeqco1w", + "canonicalFilename": "test.tsx_App_Header_component_B9F3YeqcO1w", "path": "", "extension": "tsx", "parent": null, @@ -47,7 +47,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_header_component_div_onclick_ao7ui7iw6oq.tsx (ENTRY POINT)== +============================= test.tsx_App_Header_component_div_onClick_aO7uI7Iw6oQ.tsx (ENTRY POINT)== export const App_Header_component_div_onClick_aO7uI7Iw6oQ = (ctx)=>console.log(ctx); export { _hW } from "@builder.io/qwik"; @@ -61,7 +61,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_Header_component_div_onClick", "hash": "aO7uI7Iw6oQ", - "canonicalFilename": "test.tsx_app_header_component_div_onclick_ao7ui7iw6oq", + "canonicalFilename": "test.tsx_App_Header_component_div_onClick_aO7uI7Iw6oQ", "path": "", "extension": "tsx", "parent": "App_Header_component_B9F3YeqcO1w", @@ -79,7 +79,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; export const App = ()=>{ - const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_header_component_b9f3yeqco1w"), "App_Header_component_B9F3YeqcO1w")); + const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_Header_component_B9F3YeqcO1w"), "App_Header_component_B9F3YeqcO1w")); return Header; }; diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_4.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_4.snap index 0b4d1ed18ac..f3a5f56f478 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_4.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_4.snap @@ -17,12 +17,12 @@ export function App() { return Header; } -============================= test.tsx_app_header_component_b9f3yeqco1w.tsx (ENTRY POINT)== +============================= test.tsx_App_Header_component_B9F3YeqcO1w.tsx (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; export const App_Header_component_B9F3YeqcO1w = ()=>{ console.log("mount"); - return
import("./test.tsx_app_header_component_div_onclick_ao7ui7iw6oq"), "App_Header_component_div_onClick_aO7uI7Iw6oQ")}/>; + return
import("./test.tsx_App_Header_component_div_onClick_aO7uI7Iw6oQ"), "App_Header_component_div_onClick_aO7uI7Iw6oQ")}/>; }; @@ -34,7 +34,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_Header_component", "hash": "B9F3YeqcO1w", - "canonicalFilename": "test.tsx_app_header_component_b9f3yeqco1w", + "canonicalFilename": "test.tsx_App_Header_component_B9F3YeqcO1w", "path": "", "extension": "tsx", "parent": null, @@ -47,7 +47,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_header_component_div_onclick_ao7ui7iw6oq.tsx (ENTRY POINT)== +============================= test.tsx_App_Header_component_div_onClick_aO7uI7Iw6oQ.tsx (ENTRY POINT)== export const App_Header_component_div_onClick_aO7uI7Iw6oQ = (ctx)=>console.log(ctx); export { _hW } from "@builder.io/qwik"; @@ -61,7 +61,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_Header_component_div_onClick", "hash": "aO7uI7Iw6oQ", - "canonicalFilename": "test.tsx_app_header_component_div_onclick_ao7ui7iw6oq", + "canonicalFilename": "test.tsx_App_Header_component_div_onClick_aO7uI7Iw6oQ", "path": "", "extension": "tsx", "parent": "App_Header_component_B9F3YeqcO1w", @@ -79,7 +79,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; export function App() { - const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_header_component_b9f3yeqco1w"), "App_Header_component_B9F3YeqcO1w")); + const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_Header_component_B9F3YeqcO1w"), "App_Header_component_B9F3YeqcO1w")); return Header; } diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_5.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_5.snap index f7e56e16674..e7e65fc4538 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_5.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_5.snap @@ -16,13 +16,13 @@ export const Header = component$(() => { ); }); -============================= test.tsx_header_component_j4uyihabnr4.tsx (ENTRY POINT)== +============================= test.tsx_Header_component_J4uyIhaBNR4.tsx (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; export const Header_component_J4uyIhaBNR4 = ()=>{ return <>
console.log("1")}/> -
import("./test.tsx_header_component_div_onclick_i7ekvwh3674"), "Header_component_div_onClick_i7ekvWH3674")}/> +
import("./test.tsx_Header_component_div_onClick_i7ekvWH3674"), "Header_component_div_onClick_i7ekvWH3674")}/> ; }; @@ -35,7 +35,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Header_component", "hash": "J4uyIhaBNR4", - "canonicalFilename": "test.tsx_header_component_j4uyihabnr4", + "canonicalFilename": "test.tsx_Header_component_J4uyIhaBNR4", "path": "", "extension": "tsx", "parent": null, @@ -52,11 +52,11 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_header_component_j4uyihabnr4"), "Header_component_J4uyIhaBNR4")); +export const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Header_component_J4uyIhaBNR4"), "Header_component_J4uyIhaBNR4")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAEA,OAAO,MAAM,uBAAS,uHAOnB\"}") -============================= test.tsx_header_component_div_onclick_i7ekvwh3674.tsx (ENTRY POINT)== +============================= test.tsx_Header_component_div_onClick_i7ekvWH3674.tsx (ENTRY POINT)== export const Header_component_div_onClick_i7ekvWH3674 = (ctx)=>console.log("2"); export { _hW } from "@builder.io/qwik"; @@ -70,7 +70,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Header_component_div_onClick", "hash": "i7ekvWH3674", - "canonicalFilename": "test.tsx_header_component_div_onclick_i7ekvwh3674", + "canonicalFilename": "test.tsx_Header_component_div_onClick_i7ekvWH3674", "path": "", "extension": "tsx", "parent": "Header_component_J4uyIhaBNR4", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_6.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_6.snap index 27ee8f0addd..ad759258cc4 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_6.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_6.snap @@ -9,7 +9,7 @@ expression: output import { $, component$ } from '@builder.io/qwik'; export const sym1 = $((ctx) => console.log("1")); -============================= test.tsx_sym1_axurpxx5lak.tsx (ENTRY POINT)== +============================= test.tsx_sym1_aXUrPXX5Lak.tsx (ENTRY POINT)== export const sym1_aXUrPXX5Lak = (ctx)=>console.log("1"); export { _hW } from "@builder.io/qwik"; @@ -23,7 +23,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_sym1", "hash": "aXUrPXX5Lak", - "canonicalFilename": "test.tsx_sym1_axurpxx5lak", + "canonicalFilename": "test.tsx_sym1_aXUrPXX5Lak", "path": "", "extension": "tsx", "parent": null, @@ -39,7 +39,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ============================= test.tsx == import { qrl } from "@builder.io/qwik"; -export const sym1 = /*#__PURE__*/ qrl(()=>import("./test.tsx_sym1_axurpxx5lak"), "sym1_aXUrPXX5Lak"); +export const sym1 = /*#__PURE__*/ qrl(()=>import("./test.tsx_sym1_aXUrPXX5Lak"), "sym1_aXUrPXX5Lak"); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";AAEA,OAAO,MAAM,wFAAoC\"}") diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_7.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_7.snap index b6b2c8280a1..de5b3fd40cd 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_7.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_7.snap @@ -21,12 +21,12 @@ const App = component$(() => { ); }); -============================= test.tsx_header_component_j4uyihabnr4.tsx (ENTRY POINT)== +============================= test.tsx_Header_component_J4uyIhaBNR4.tsx (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; export const Header_component_J4uyIhaBNR4 = ()=>{ console.log("mount"); - return
import("./test.tsx_header_component_div_onclick_i7ekvwh3674"), "Header_component_div_onClick_i7ekvWH3674")}/>; + return
import("./test.tsx_Header_component_div_onClick_i7ekvWH3674"), "Header_component_div_onClick_i7ekvWH3674")}/>; }; @@ -38,7 +38,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Header_component", "hash": "J4uyIhaBNR4", - "canonicalFilename": "test.tsx_header_component_j4uyihabnr4", + "canonicalFilename": "test.tsx_Header_component_J4uyIhaBNR4", "path": "", "extension": "tsx", "parent": null, @@ -55,12 +55,12 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_header_component_j4uyihabnr4"), "Header_component_J4uyIhaBNR4")); -/*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0"), "App_component_ckEPmXZlub0")); +export const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Header_component_J4uyIhaBNR4"), "Header_component_J4uyIhaBNR4")); +/*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0"), "App_component_ckEPmXZlub0")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,uBAAS,uHAKjB;cAEO\"}") -============================= test.tsx_app_component_ckepmxzlub0.tsx (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.tsx (ENTRY POINT)== import { Header } from "./test"; export const App_component_ckEPmXZlub0 = ()=>{ @@ -76,7 +76,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "tsx", "parent": null, @@ -89,7 +89,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_header_component_div_onclick_i7ekvwh3674.tsx (ENTRY POINT)== +============================= test.tsx_Header_component_div_onClick_i7ekvWH3674.tsx (ENTRY POINT)== export const Header_component_div_onClick_i7ekvWH3674 = (ctx)=>console.log(ctx); export { _hW } from "@builder.io/qwik"; @@ -103,7 +103,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Header_component_div_onClick", "hash": "i7ekvWH3674", - "canonicalFilename": "test.tsx_header_component_div_onclick_i7ekvwh3674", + "canonicalFilename": "test.tsx_Header_component_div_onClick_i7ekvWH3674", "path": "", "extension": "tsx", "parent": "Header_component_J4uyIhaBNR4", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_8.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_8.snap index b29bbeb6a86..ad32b93b5a2 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_8.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_8.snap @@ -19,11 +19,11 @@ export const Header = component$(() => { }); }); -============================= test.tsx_header_component_j4uyihabnr4.tsx (ENTRY POINT)== +============================= test.tsx_Header_component_J4uyIhaBNR4.tsx (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; export const Header_component_J4uyIhaBNR4 = ()=>{ - return /*#__PURE__*/ qrl(()=>import("./test.tsx_header_component_1_2b8d0oh9zwc"), "Header_component_1_2B8d0oH9ZWc"); + return /*#__PURE__*/ qrl(()=>import("./test.tsx_Header_component_1_2B8d0oH9ZWc"), "Header_component_1_2B8d0oH9ZWc"); }; @@ -35,7 +35,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Header_component", "hash": "J4uyIhaBNR4", - "canonicalFilename": "test.tsx_header_component_j4uyihabnr4", + "canonicalFilename": "test.tsx_Header_component_J4uyIhaBNR4", "path": "", "extension": "tsx", "parent": null, @@ -48,7 +48,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_header_component_1_2b8d0oh9zwc.tsx (ENTRY POINT)== +============================= test.tsx_Header_component_1_2B8d0oH9ZWc.tsx (ENTRY POINT)== import { Header } from "./test"; export const Header_component_1_2B8d0oH9ZWc = (hola)=>{ @@ -68,7 +68,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Header_component_1", "hash": "2B8d0oH9ZWc", - "canonicalFilename": "test.tsx_header_component_1_2b8d0oh9zwc", + "canonicalFilename": "test.tsx_Header_component_1_2B8d0oH9ZWc", "path": "", "extension": "tsx", "parent": "Header_component_J4uyIhaBNR4", @@ -85,7 +85,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_header_component_j4uyihabnr4"), "Header_component_J4uyIhaBNR4")); +export const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Header_component_J4uyIhaBNR4"), "Header_component_J4uyIhaBNR4")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,uBAAS,uHASnB\"}") diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_9.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_9.snap index 81096a7182d..8df9d91c632 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_9.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_9.snap @@ -19,7 +19,7 @@ const Header = $((decl1, {decl2}, [decl3]) => { try{}catch({decl19}){} }); -============================= test.tsx_header_wjuauqn7oxg.tsx (ENTRY POINT)== +============================= test.tsx_Header_WjUaUQN7Oxg.tsx (ENTRY POINT)== export const Header_WjUaUQN7Oxg = (decl1, { decl2 }, [decl3])=>{ const { decl4, key: decl5 } = this; @@ -36,7 +36,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Header", "hash": "WjUaUQN7Oxg", - "canonicalFilename": "test.tsx_header_wjuauqn7oxg", + "canonicalFilename": "test.tsx_Header_WjUaUQN7Oxg", "path": "", "extension": "tsx", "parent": null, @@ -52,7 +52,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ============================= test.tsx == import { qrl } from "@builder.io/qwik"; -/*#__PURE__*/ qrl(()=>import("./test.tsx_header_wjuauqn7oxg"), "Header_WjUaUQN7Oxg"); +/*#__PURE__*/ qrl(()=>import("./test.tsx_Header_WjUaUQN7Oxg"), "Header_WjUaUQN7Oxg"); Some("{\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\"}") diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_build_server.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_build_server.snap index ebfa0d5cdf2..ecb180d1b6d 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_build_server.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_build_server.snap @@ -43,11 +43,11 @@ export const App = component$(() => { import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; export const functionThatNeedsWindow = ()=>{}; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0"), "s_ckEPmXZlub0")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0"), "s_ckEPmXZlub0")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAQA,OAAO,MAAM,0BAA0B,KAMvC,EAAE;AAEF,OAAO,MAAM,oBAAM,qGAehB\"}") -============================= test.tsx_app_component_ckepmxzlub0.tsx (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.tsx (ENTRY POINT)== import { mongodb } from "mondodb"; export const s_ckEPmXZlub0 = ()=>{ @@ -69,7 +69,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "tsx", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_capture_imports.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_capture_imports.snap index e8475b04fe3..e5115fa7af7 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_capture_imports.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_capture_imports.snap @@ -20,11 +20,11 @@ export const App = component$(() => { import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0"), "App_component_ckEPmXZlub0")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0"), "App_component_ckEPmXZlub0")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAMA,OAAO,MAAM,oBAAM,iHAGjB\"}") -============================= test.tsx_app_component_usestyles_t35nsa5uv7u.js (ENTRY POINT)== +============================= test.tsx_App_component_useStyles_t35nSa5UV7U.js (ENTRY POINT)== import css1 from "./global.css"; import css2 from "./style.css"; @@ -39,7 +39,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_useStyles", "hash": "t35nSa5UV7U", - "canonicalFilename": "test.tsx_app_component_usestyles_t35nsa5uv7u", + "canonicalFilename": "test.tsx_App_component_useStyles_t35nSa5UV7U", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", @@ -52,13 +52,13 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_ckepmxzlub0.js (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; import { useStylesQrl } from "@builder.io/qwik"; export const App_component_ckEPmXZlub0 = ()=>{ - useStylesQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_usestyles_t35nsa5uv7u"), "App_component_useStyles_t35nSa5UV7U")); - useStylesQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_usestyles_1_xbk4w0zkwe8"), "App_component_useStyles_1_xBK4W0ZKWe8")); + useStylesQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_useStyles_t35nSa5UV7U"), "App_component_useStyles_t35nSa5UV7U")); + useStylesQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_useStyles_1_xBK4W0ZKWe8"), "App_component_useStyles_1_xBK4W0ZKWe8")); }; @@ -70,7 +70,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "js", "parent": null, @@ -83,7 +83,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_usestyles_1_xbk4w0zkwe8.js (ENTRY POINT)== +============================= test.tsx_App_component_useStyles_1_xBK4W0ZKWe8.js (ENTRY POINT)== import css3 from "./style.css"; export const App_component_useStyles_1_xBK4W0ZKWe8 = css3; @@ -97,7 +97,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_useStyles_1", "hash": "xBK4W0ZKWe8", - "canonicalFilename": "test.tsx_app_component_usestyles_1_xbk4w0zkwe8", + "canonicalFilename": "test.tsx_App_component_useStyles_1_xBK4W0ZKWe8", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_capturing_fn_class.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_capturing_fn_class.snap index 73530ddf356..e87fa168db4 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_capturing_fn_class.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_capturing_fn_class.snap @@ -28,15 +28,15 @@ export const App = component$(() => { import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0"), "App_component_ckEPmXZlub0")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0"), "App_component_ckEPmXZlub0")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,oBAAM,iHAcjB\"}") -============================= test.tsx_app_component_ckepmxzlub0.js (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; export const App_component_ckEPmXZlub0 = ()=>{ - return /*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_1_w0t0o3qmovu"), "App_component_1_w0t0o3QMovU"); + return /*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_1_w0t0o3QMovU"), "App_component_1_w0t0o3QMovU"); }; @@ -48,7 +48,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "js", "parent": null, @@ -61,7 +61,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_1_w0t0o3qmovu.js (ENTRY POINT)== +============================= test.tsx_App_component_1_w0t0o3QMovU.js (ENTRY POINT)== import { _jsxQ } from "@builder.io/qwik"; export const App_component_1_w0t0o3QMovU = ()=>{ @@ -80,7 +80,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_1", "hash": "w0t0o3QMovU", - "canonicalFilename": "test.tsx_app_component_1_w0t0o3qmovu", + "canonicalFilename": "test.tsx_App_component_1_w0t0o3QMovU", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_class_name.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_class_name.snap index 869d8bdf664..c57f2b4cfec 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_class_name.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_class_name.snap @@ -30,11 +30,11 @@ export const App2 = component$(() => { import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const App2 = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app2_component_3yvemqbq3fs.js"), "App2_component_3yveMqbQ3Fs")); +export const App2 = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App2_component_3yveMqbQ3Fs.js"), "App2_component_3yveMqbQ3Fs")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,qBAAO,sHAgBjB\"}") -============================= test.tsx_app2_component_3yvemqbq3fs.js (ENTRY POINT)== +============================= test.tsx_App2_component_3yveMqbQ3Fs.js (ENTRY POINT)== import { Fragment as _Fragment } from "@builder.io/qwik/jsx-runtime"; import { _IMMUTABLE } from "@builder.io/qwik"; @@ -98,7 +98,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App2_component", "hash": "3yveMqbQ3Fs", - "canonicalFilename": "test.tsx_app2_component_3yvemqbq3fs", + "canonicalFilename": "test.tsx_App2_component_3yveMqbQ3Fs", "path": "", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_custom_inlined_functions.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_custom_inlined_functions.snap index 06bd921ed98..4b0e373ad9c 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_custom_inlined_functions.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_custom_inlined_functions.snap @@ -39,14 +39,14 @@ export const useMemoQrl = (qrt)=>{ useEffect(qrt); }; export const useMemo$ = wrap(useMemoQrl); -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0"), "App_component_ckEPmXZlub0")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0"), "App_component_ckEPmXZlub0")); export const Lightweight = (props)=>{ - useMemoQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_lightweight_usememo_uicxvtqf1a8"), "Lightweight_useMemo_UIcxVTQF1a8")); + useMemoQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Lightweight_useMemo_UIcxVTQF1a8"), "Lightweight_useMemo_UIcxVTQF1a8")); }; Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AACA,SAAkC,IAAI,EAAE,SAAS,QAAQ,mBAAmB;AAE5E,OAAO,MAAM,aAAa,CAAC;IACvB,UAAU;AACd,EAAE;AAEF,OAAO,MAAM,WAAW,KAAK,YAAY;AAEzC,OAAO,MAAM,oBAAM,iHAQhB;AAEH,OAAO,MAAM,cAAc,CAAC;IACxB;AAGJ,EAAG\"}") -============================= test.tsx_app_component_usememo_6sc9kvki3y0.js (ENTRY POINT)== +============================= test.tsx_App_component_useMemo_6Sc9KVki3Y0.js (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; export const App_component_useMemo_6Sc9KVki3Y0 = ()=>{ @@ -63,7 +63,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_useMemo", "hash": "6Sc9KVki3Y0", - "canonicalFilename": "test.tsx_app_component_usememo_6sc9kvki3y0", + "canonicalFilename": "test.tsx_App_component_useMemo_6Sc9KVki3Y0", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", @@ -76,7 +76,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_lightweight_usememo_uicxvtqf1a8.js (ENTRY POINT)== +============================= test.tsx_Lightweight_useMemo_UIcxVTQF1a8.js (ENTRY POINT)== export const Lightweight_useMemo_UIcxVTQF1a8 = ()=>{ console.log(state.count); @@ -91,7 +91,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Lightweight_useMemo", "hash": "UIcxVTQF1a8", - "canonicalFilename": "test.tsx_lightweight_usememo_uicxvtqf1a8", + "canonicalFilename": "test.tsx_Lightweight_useMemo_UIcxVTQF1a8", "path": "", "extension": "js", "parent": null, @@ -104,7 +104,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_ckepmxzlub0.js (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; import { useMemoQrl } from "./test"; @@ -113,10 +113,10 @@ export const App_component_ckEPmXZlub0 = (props)=>{ const state = useStore({ count: 0 }); - useMemoQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_usememo_6sc9kvki3y0"), "App_component_useMemo_6Sc9KVki3Y0", [ + useMemoQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_useMemo_6Sc9KVki3Y0"), "App_component_useMemo_6Sc9KVki3Y0", [ state ])); - return /*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_1_w0t0o3qmovu"), "App_component_1_w0t0o3QMovU", [ + return /*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_1_w0t0o3QMovU"), "App_component_1_w0t0o3QMovU", [ state ]); }; @@ -130,7 +130,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "js", "parent": null, @@ -143,7 +143,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_1_w0t0o3qmovu.js (ENTRY POINT)== +============================= test.tsx_App_component_1_w0t0o3QMovU.js (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; import { _fnSignal } from "@builder.io/qwik"; @@ -165,7 +165,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_1", "hash": "w0t0o3QMovU", - "canonicalFilename": "test.tsx_app_component_1_w0t0o3qmovu", + "canonicalFilename": "test.tsx_App_component_1_w0t0o3QMovU", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_dead_code.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_dead_code.snap index 4678e291cbb..e860949a649 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_dead_code.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_dead_code.snap @@ -20,7 +20,7 @@ export const Foo = component$(({foo}) => { ); }) -============================= test.tsx_foo_component_htdrsvublie.tsx (ENTRY POINT)== +============================= test.tsx_Foo_component_HTDRsvUbLiE.tsx (ENTRY POINT)== export const Foo_component_HTDRsvUbLiE = (props)=>{ useMount$(()=>{}); @@ -36,7 +36,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component", "hash": "HTDRsvUbLiE", - "canonicalFilename": "test.tsx_foo_component_htdrsvublie", + "canonicalFilename": "test.tsx_Foo_component_HTDRsvUbLiE", "path": "", "extension": "tsx", "parent": null, @@ -53,7 +53,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Foo = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_htdrsvublie"), "Foo_component_HTDRsvUbLiE")); +export const Foo = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_HTDRsvUbLiE"), "Foo_component_HTDRsvUbLiE")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAIA,OAAO,MAAM,oBAAM,iHASjB\"}") diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_default_export.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_default_export.snap index 37ccc4456b9..c63a5dfd648 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_default_export.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_default_export.snap @@ -21,11 +21,11 @@ export default component$(() => { import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./[[...slug]].tsx_slug_component_0am8hpnkns4.js"), "slug_component_0AM8HPnkNs4")); +export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./[[...slug]].tsx_slug_component_0AM8HPnkNs4.js"), "slug_component_0AM8HPnkNs4")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/src/routes/_repl/[id]/[[...slug]].tsx\"],\"names\":[],\"mappings\":\";;AAIA,6BAAe,6HAKZ\"}") -============================= src/routes/_repl/[id]/[[...slug]].tsx_slug_component_div_onclick_xevvy0qc7pa.js (ENTRY POINT)== +============================= src/routes/_repl/[id]/[[...slug]].tsx_slug_component_div_onClick_xevvy0Qc7pA.js (ENTRY POINT)== import { sibling } from "./sibling"; export const slug_component_div_onClick_xevvy0Qc7pA = ()=>console.log(mongodb, sibling); @@ -39,7 +39,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/src/routes/_repl/[id]/[[...sl "entry": null, "displayName": "[[...slug]].tsx_slug_component_div_onClick", "hash": "xevvy0Qc7pA", - "canonicalFilename": "[[...slug]].tsx_slug_component_div_onclick_xevvy0qc7pa", + "canonicalFilename": "[[...slug]].tsx_slug_component_div_onClick_xevvy0Qc7pA", "path": "src/routes/_repl/[id]", "extension": "js", "parent": "slug_component_0AM8HPnkNs4", @@ -52,13 +52,13 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/src/routes/_repl/[id]/[[...sl ] } */ -============================= src/routes/_repl/[id]/[[...slug]].tsx_slug_component_0am8hpnkns4.js == +============================= src/routes/_repl/[id]/[[...slug]].tsx_slug_component_0AM8HPnkNs4.js == import { _jsxQ } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; export const slug_component_0AM8HPnkNs4 = ()=>{ return /*#__PURE__*/ _jsxQ("div", null, { - onClick$: /*#__PURE__*/ qrl(()=>import("./[[...slug]].tsx_slug_component_div_onclick_xevvy0qc7pa.js"), "slug_component_div_onClick_xevvy0Qc7pA") + onClick$: /*#__PURE__*/ qrl(()=>import("./[[...slug]].tsx_slug_component_div_onClick_xevvy0Qc7pA.js"), "slug_component_div_onClick_xevvy0Qc7pA") }, null, 3, "W4_0"); }; @@ -71,7 +71,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/src/routes/_repl/[id]/[[...sl "entry": "src/routes/_repl/[id]/[[...slug]].tsx_entry_[[...slug]]", "displayName": "[[...slug]].tsx_slug_component", "hash": "0AM8HPnkNs4", - "canonicalFilename": "[[...slug]].tsx_slug_component_0am8hpnkns4", + "canonicalFilename": "[[...slug]].tsx_slug_component_0AM8HPnkNs4", "path": "src/routes/_repl/[id]", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_default_export_invalid_ident.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_default_export_invalid_ident.snap index cc325da5035..6436c317a8d 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_default_export_invalid_ident.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_default_export_invalid_ident.snap @@ -20,15 +20,15 @@ export default component$(() => { import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./404.tsx__404_component_zrvowc98eqo"), "_404_component_zRvoWc98eqo")); +export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./404.tsx__404_component_zRvoWc98eqo"), "_404_component_zRvoWc98eqo")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/src/components/mongo/404.tsx\"],\"names\":[],\"mappings\":\";;AAGA,6BAAe,kHAKZ\"}") -============================= src/components/mongo/404.tsx__404_component_zrvowc98eqo.tsx (ENTRY POINT)== +============================= src/components/mongo/404.tsx__404_component_zRvoWc98eqo.tsx (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; export const _404_component_zRvoWc98eqo = ()=>{ - return
import("./404.tsx__404_component_div_onclick_oimo9dvew9q"), "_404_component_div_onClick_OiMo9dvEW9Q")}> + return
import("./404.tsx__404_component_div_onClick_OiMo9dvEW9Q"), "_404_component_div_onClick_OiMo9dvEW9Q")}>
; }; @@ -41,7 +41,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/src/components/mongo/404.tsx\ "entry": null, "displayName": "404.tsx__404_component", "hash": "zRvoWc98eqo", - "canonicalFilename": "404.tsx__404_component_zrvowc98eqo", + "canonicalFilename": "404.tsx__404_component_zRvoWc98eqo", "path": "src/components/mongo", "extension": "tsx", "parent": null, @@ -54,7 +54,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/src/components/mongo/404.tsx\ ] } */ -============================= src/components/mongo/404.tsx__404_component_div_onclick_oimo9dvew9q.tsx (ENTRY POINT)== +============================= src/components/mongo/404.tsx__404_component_div_onClick_OiMo9dvEW9Q.tsx (ENTRY POINT)== export const _404_component_div_onClick_OiMo9dvEW9Q = ()=>console.log(mongodb); @@ -67,7 +67,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/src/components/mongo/404.tsx\ "entry": null, "displayName": "404.tsx__404_component_div_onClick", "hash": "OiMo9dvEW9Q", - "canonicalFilename": "404.tsx__404_component_div_onclick_oimo9dvew9q", + "canonicalFilename": "404.tsx__404_component_div_onClick_OiMo9dvEW9Q", "path": "src/components/mongo", "extension": "tsx", "parent": "_404_component_zRvoWc98eqo", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_dev_mode.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_dev_mode.snap index 9d034425a7e..003bde05a01 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_dev_mode.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_dev_mode.snap @@ -20,7 +20,7 @@ export const App = component$(() => { import { componentQrl } from "@builder.io/qwik"; import { qrlDEV } from "@builder.io/qwik"; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrlDEV(()=>import("./test.tsx_app_component_ckepmxzlub0"), "App_component_ckEPmXZlub0", { +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrlDEV(()=>import("./test.tsx_App_component_ckEPmXZlub0"), "App_component_ckEPmXZlub0", { file: "/user/qwik/src/test.tsx", lo: 90, hi: 229, @@ -29,7 +29,7 @@ export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrlDEV(()=>import(". Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,oBAAM;;;;;IAMhB\"}") -============================= test.tsx_app_component_ckepmxzlub0.js (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)== import { _jsxC } from "@builder.io/qwik"; import { _jsxQ } from "@builder.io/qwik"; @@ -38,7 +38,7 @@ export const App_component_ckEPmXZlub0 = ()=>{ return /*#__PURE__*/ _jsxC(Cmp, { children: /*#__PURE__*/ _jsxQ("p", null, { class: "stuff", - onClick$: /*#__PURE__*/ qrlDEV(()=>import("./test.tsx_app_component_cmp_p_onclick_vuxzfutkpto"), "App_component_Cmp_p_onClick_vuXzfUTkpto", { + onClick$: /*#__PURE__*/ qrlDEV(()=>import("./test.tsx_App_component_Cmp_p_onClick_vuXzfUTkpto"), "App_component_Cmp_p_onClick_vuXzfUTkpto", { file: "/user/qwik/src/test.tsx", lo: 164, hi: 189, @@ -65,7 +65,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "js", "parent": null, @@ -78,7 +78,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_cmp_p_onclick_vuxzfutkpto.js (ENTRY POINT)== +============================= test.tsx_App_component_Cmp_p_onClick_vuXzfUTkpto.js (ENTRY POINT)== export const App_component_Cmp_p_onClick_vuXzfUTkpto = ()=>console.log('warn'); @@ -91,7 +91,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_Cmp_p_onClick", "hash": "vuXzfUTkpto", - "canonicalFilename": "test.tsx_app_component_cmp_p_onclick_vuxzfutkpto", + "canonicalFilename": "test.tsx_App_component_Cmp_p_onClick_vuXzfUTkpto", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_drop_side_effects.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_drop_side_effects.snap index c73ac148b53..cba7682600a 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_drop_side_effects.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_drop_side_effects.snap @@ -55,7 +55,7 @@ export const api = serverQrl(/*#__PURE__*/ _noopQrlDEV("api_server_JonPp043gH0", hi: 0, displayName: "test.tsx_api_server" })); -export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrlDEV(()=>import("./test.tsx_test_component_luxexe0dqrg"), "test_component_LUXeXe0DQrg", { +export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrlDEV(()=>import("./test.tsx_test_component_LUXeXe0DQrg"), "test_component_LUXeXe0DQrg", { file: "/user/qwik/src/test.tsx", lo: 522, hi: 605, @@ -64,7 +64,7 @@ export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrlDEV(()=>import("./tes Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;;;AAMA,SAAS,UAAU,QAAQ,WAAW;AAKtC,CAAC;IACG,QAAQ,GAAG,CAAC;AACd,CAAC;AACD,CAAC;IACC,QAAQ,GAAG,CAAC;AACd,CAAC;AAEH;AAEA,OAAO,MAAM,MAAM;;;;;IAEhB;AAEH,6BAAe;;;;;IAIV\"}") -============================= test.tsx_test_component_button_onclick_dgk9xlyroka.js (ENTRY POINT)== +============================= test.tsx_test_component_button_onClick_DGk9xLyRokA.js (ENTRY POINT)== import { api } from "./test"; export const test_component_button_onClick_DGk9xLyRokA = ()=>await api(); @@ -78,7 +78,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_test_component_button_onClick", "hash": "DGk9xLyRokA", - "canonicalFilename": "test.tsx_test_component_button_onclick_dgk9xlyroka", + "canonicalFilename": "test.tsx_test_component_button_onClick_DGk9xLyRokA", "path": "", "extension": "js", "parent": "test_component_LUXeXe0DQrg", @@ -91,13 +91,13 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_test_component_luxexe0dqrg.js (ENTRY POINT)== +============================= test.tsx_test_component_LUXeXe0DQrg.js (ENTRY POINT)== import { _jsxQ } from "@builder.io/qwik"; import { qrlDEV } from "@builder.io/qwik"; export const test_component_LUXeXe0DQrg = ()=>{ return /*#__PURE__*/ _jsxQ("button", null, { - onClick$: /*#__PURE__*/ qrlDEV(()=>import("./test.tsx_test_component_button_onclick_dgk9xlyroka"), "test_component_button_onClick_DGk9xLyRokA", { + onClick$: /*#__PURE__*/ qrlDEV(()=>import("./test.tsx_test_component_button_onClick_DGk9xLyRokA"), "test_component_button_onClick_DGk9xLyRokA", { file: "/user/qwik/src/test.tsx", lo: 567, hi: 584, @@ -119,7 +119,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_test_component", "hash": "LUXeXe0DQrg", - "canonicalFilename": "test.tsx_test_component_luxexe0dqrg", + "canonicalFilename": "test.tsx_test_component_LUXeXe0DQrg", "path": "", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_explicit_ext_no_transpile.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_explicit_ext_no_transpile.snap index d27d71757fe..6933b4e73fe 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_explicit_ext_no_transpile.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_explicit_ext_no_transpile.snap @@ -19,11 +19,11 @@ export const App = component$((props) => { import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0.tsx"), "App_component_ckEPmXZlub0")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0.tsx"), "App_component_ckEPmXZlub0")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,oBAAM,qHAKhB\"}") -============================= test.tsx_app_component_usestyles_t35nsa5uv7u.tsx == +============================= test.tsx_App_component_useStyles_t35nSa5UV7U.tsx == export const App_component_useStyles_t35nSa5UV7U = 'hola'; @@ -36,7 +36,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": "entry_segments", "displayName": "test.tsx_App_component_useStyles", "hash": "t35nSa5UV7U", - "canonicalFilename": "test.tsx_app_component_usestyles_t35nsa5uv7u", + "canonicalFilename": "test.tsx_App_component_useStyles_t35nSa5UV7U", "path": "", "extension": "tsx", "parent": "App_component_ckEPmXZlub0", @@ -49,13 +49,13 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_ckepmxzlub0.tsx == +============================= test.tsx_App_component_ckEPmXZlub0.tsx == import { qrl } from "@builder.io/qwik"; import { useStylesQrl } from "@builder.io/qwik"; export const App_component_ckEPmXZlub0 = (props)=>{ - useStylesQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_usestyles_t35nsa5uv7u.tsx"), "App_component_useStyles_t35nSa5UV7U")); - return /*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_1_w0t0o3qmovu.tsx"), "App_component_1_w0t0o3QMovU"); + useStylesQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_useStyles_t35nSa5UV7U.tsx"), "App_component_useStyles_t35nSa5UV7U")); + return /*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_1_w0t0o3QMovU.tsx"), "App_component_1_w0t0o3QMovU"); }; @@ -67,7 +67,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": "entry_segments", "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "tsx", "parent": null, @@ -80,7 +80,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_1_w0t0o3qmovu.tsx == +============================= test.tsx_App_component_1_w0t0o3QMovU.tsx == export const App_component_1_w0t0o3QMovU = ()=>
; export { _hW } from "@builder.io/qwik"; @@ -94,7 +94,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": "entry_segments", "displayName": "test.tsx_App_component_1", "hash": "w0t0o3QMovU", - "canonicalFilename": "test.tsx_app_component_1_w0t0o3qmovu", + "canonicalFilename": "test.tsx_App_component_1_w0t0o3QMovU", "path": "", "extension": "tsx", "parent": "App_component_ckEPmXZlub0", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_explicit_ext_transpile.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_explicit_ext_transpile.snap index 1845911e188..d1346e54b71 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_explicit_ext_transpile.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_explicit_ext_transpile.snap @@ -19,11 +19,11 @@ export const App = component$((props) => { import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0.js"), "App_component_ckEPmXZlub0")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0.js"), "App_component_ckEPmXZlub0")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,oBAAM,oHAKhB\"}") -============================= test.tsx_app_component_usestyles_t35nsa5uv7u.js (ENTRY POINT)== +============================= test.tsx_App_component_useStyles_t35nSa5UV7U.js (ENTRY POINT)== export const App_component_useStyles_t35nSa5UV7U = 'hola'; @@ -36,7 +36,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_useStyles", "hash": "t35nSa5UV7U", - "canonicalFilename": "test.tsx_app_component_usestyles_t35nsa5uv7u", + "canonicalFilename": "test.tsx_App_component_useStyles_t35nSa5UV7U", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", @@ -49,13 +49,13 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_ckepmxzlub0.js (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; import { useStylesQrl } from "@builder.io/qwik"; export const App_component_ckEPmXZlub0 = (props)=>{ - useStylesQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_usestyles_t35nsa5uv7u.js"), "App_component_useStyles_t35nSa5UV7U")); - return /*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_1_w0t0o3qmovu.js"), "App_component_1_w0t0o3QMovU"); + useStylesQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_useStyles_t35nSa5UV7U.js"), "App_component_useStyles_t35nSa5UV7U")); + return /*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_1_w0t0o3QMovU.js"), "App_component_1_w0t0o3QMovU"); }; @@ -67,7 +67,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "js", "parent": null, @@ -80,7 +80,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_1_w0t0o3qmovu.js (ENTRY POINT)== +============================= test.tsx_App_component_1_w0t0o3QMovU.js (ENTRY POINT)== import { _jsxQ } from "@builder.io/qwik"; export const App_component_1_w0t0o3QMovU = ()=>/*#__PURE__*/ _jsxQ("div", null, null, null, 3, "u6_0"); @@ -95,7 +95,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_1", "hash": "w0t0o3QMovU", - "canonicalFilename": "test.tsx_app_component_1_w0t0o3qmovu", + "canonicalFilename": "test.tsx_App_component_1_w0t0o3QMovU", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_export_issue.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_export_issue.snap index f7205cd3a6e..138b8a03036 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_export_issue.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_export_issue.snap @@ -30,8 +30,8 @@ export default App; import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0"), "App_component_ckEPmXZlub0")); -export const Root = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_root_component_royhjyacbye"), "Root_component_royhjYaCbYE")); +const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0"), "App_component_ckEPmXZlub0")); +export const Root = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Root_component_royhjYaCbYE"), "Root_component_royhjYaCbYE")); const Other = 12; export { Other as App }; export default App; @@ -39,7 +39,7 @@ export { App as _auto_App }; Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,MAAM,oBAAM;AAOZ,OAAO,MAAM,qBAAO,mHAIjB;AAEH,MAAM,QAAQ;AACd,SAAS,SAAS,GAAG,GAAG;AAExB,eAAe,IAAI\"}") -============================= test.tsx_root_component_royhjyacbye.js (ENTRY POINT)== +============================= test.tsx_Root_component_royhjYaCbYE.js (ENTRY POINT)== import { _auto_App as App } from "./test"; import { _jsxC } from "@builder.io/qwik"; @@ -56,7 +56,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Root_component", "hash": "royhjYaCbYE", - "canonicalFilename": "test.tsx_root_component_royhjyacbye", + "canonicalFilename": "test.tsx_Root_component_royhjYaCbYE", "path": "", "extension": "js", "parent": null, @@ -69,7 +69,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_ckepmxzlub0.js (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)== import { _jsxQ } from "@builder.io/qwik"; export const App_component_ckEPmXZlub0 = ()=>{ @@ -85,7 +85,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_exports.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_exports.snap index e47bf0aefa5..80383b20a4c 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_exports.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_exports.snap @@ -30,11 +30,11 @@ export const Header = component$(() => { export const Footer = component$(); -============================= project/test.tsx_header_component_uvbjufyfvdo.jsx (ENTRY POINT)== +============================= project/test.tsx_Header_component_UVBJuFYfvDo.jsx (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; export const Header_component_UVBJuFYfvDo = ()=>{ - return /*#__PURE__*/ qrl(()=>import("./test.tsx_header_component_1_uwm1kg0igo0"), "Header_component_1_uWM1kg0IGO0"); + return /*#__PURE__*/ qrl(()=>import("./test.tsx_Header_component_1_uWM1kg0IGO0"), "Header_component_1_uWM1kg0IGO0"); }; @@ -46,7 +46,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/project/test.tsx\"],\"names\" "entry": null, "displayName": "test.tsx_Header_component", "hash": "UVBJuFYfvDo", - "canonicalFilename": "test.tsx_header_component_uvbjufyfvdo", + "canonicalFilename": "test.tsx_Header_component_UVBJuFYfvDo", "path": "project", "extension": "jsx", "parent": null, @@ -71,12 +71,12 @@ export function foo() {} export class bar { } export default function DefaultFn() {} -export const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_header_component_uvbjufyfvdo"), "Header_component_UVBJuFYfvDo")); +export const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Header_component_UVBJuFYfvDo"), "Header_component_UVBJuFYfvDo")); export const Footer = /*#__PURE__*/ componentQrl(); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/project/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,CAAC,GAAG,EAAC,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,IAAE,EAAE,EAAE,GAAG,GAAE,EAAE,IAAE,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;AAE7D,MAAM,OAAO;AACb,MAAM,WAAW;AACjB,SAAQ,IAAI,EAAE,YAAY,KAAK,GAAE;AAEjC,OAAO,SAAS,OAAQ;AACxB,OAAO,MAAM;AAAK;AAElB,eAAe,SAAS,aAAa;AAErC,OAAO,MAAM,uBAAS,uHAOnB;AAEH,OAAO,MAAM,uBAAS,eAAa\"}") -============================= project/test.tsx_header_component_1_uwm1kg0igo0.jsx (ENTRY POINT)== +============================= project/test.tsx_Header_component_1_uWM1kg0IGO0.jsx (ENTRY POINT)== import { default as DefaultFn } from "./test"; import { Footer } from "./test"; @@ -105,7 +105,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/project/test.tsx\"],\"names\" "entry": null, "displayName": "test.tsx_Header_component_1", "hash": "uWM1kg0IGO0", - "canonicalFilename": "test.tsx_header_component_1_uwm1kg0igo0", + "canonicalFilename": "test.tsx_Header_component_1_uWM1kg0IGO0", "path": "project", "extension": "jsx", "parent": "Header_component_UVBJuFYfvDo", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_fix_dynamic_import.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_fix_dynamic_import.snap index ef36d6e15d3..9106b05e6ea 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_fix_dynamic_import.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_fix_dynamic_import.snap @@ -22,7 +22,7 @@ export const Header = component$(() => { ); }); -============================= project/folder/test.tsx_header_component_rggm7ks9qwi.tsx == +============================= project/folder/test.tsx_Header_component_RGgm7Ks9QWI.tsx == import thing from "../state"; export const Header_component_RGgm7Ks9QWI = ()=>{ @@ -41,7 +41,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/project/folder/test.tsx\"],\" "entry": "entry_segments", "displayName": "test.tsx_Header_component", "hash": "RGgm7Ks9QWI", - "canonicalFilename": "test.tsx_header_component_rggm7ks9qwi", + "canonicalFilename": "test.tsx_Header_component_RGgm7Ks9QWI", "path": "project/folder", "extension": "tsx", "parent": null, @@ -61,7 +61,7 @@ import { qrl } from "@builder.io/qwik"; export function foo() { return import("../foo/state2"); } -export const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_header_component_rggm7ks9qwi"), "Header_component_RGgm7Ks9QWI")); +export const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Header_component_RGgm7Ks9QWI"), "Header_component_RGgm7Ks9QWI")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/project/folder/test.tsx\"],\"names\":[],\"mappings\":\";;AAIA,OAAO,SAAS;IACZ,OAAO,MAAM,CAAC;AAClB;AAEA,OAAO,MAAM,uBAAS,uHAOnB\"}") diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_functional_component.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_functional_component.snap index 78d0f9f158d..4c70609c3a1 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_functional_component.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_functional_component.snap @@ -16,7 +16,7 @@ const Header = component$(() => { ); }); -============================= test.tsx_header_component_j4uyihabnr4.tsx (ENTRY POINT)== +============================= test.tsx_Header_component_J4uyIhaBNR4.tsx (ENTRY POINT)== import { useStore } from "@builder.io/qwik"; export const Header_component_J4uyIhaBNR4 = ()=>{ @@ -34,7 +34,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Header_component", "hash": "J4uyIhaBNR4", - "canonicalFilename": "test.tsx_header_component_j4uyihabnr4", + "canonicalFilename": "test.tsx_Header_component_J4uyIhaBNR4", "path": "", "extension": "tsx", "parent": null, @@ -52,7 +52,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; import { $, component$, useStore } from '@builder.io/qwik'; -const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_header_component_j4uyihabnr4"), "Header_component_J4uyIhaBNR4")); +const Header = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Header_component_J4uyIhaBNR4"), "Header_component_J4uyIhaBNR4")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AACA,SAAS,CAAC,EAAE,UAAU,EAAE,QAAQ,QAAQ,mBAAmB;AAC3D,MAAM,uBAAS\"}") diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_functional_component_2.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_functional_component_2.snap index d0b03f6905a..b5085824abb 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_functional_component_2.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_functional_component_2.snap @@ -46,11 +46,11 @@ export const useCounter = ()=>{ }); }; export const STEP = 1; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0"), "App_component_ckEPmXZlub0")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0"), "App_component_ckEPmXZlub0")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AACA,SAAwB,QAAQ,QAAQ,mBAAmB;AAC3D,OAAO,MAAM,aAAa;IACtB,OAAO,SAAS;QAAC,OAAO;IAAC;AAC7B,EAAC;AAED,OAAO,MAAM,OAAO,EAAE;AAEtB,OAAO,MAAM,oBAAM,iHAoBjB\"}") -============================= test.tsx_app_component_div_onclick_1cgetmfzx0g.js (ENTRY POINT)== +============================= test.tsx_App_component_div_onClick_1CGetmFZx0g.js (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; export const App_component_div_onClick_1CGetmFZx0g = ()=>{ @@ -67,7 +67,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_div_onClick", "hash": "1CGetmFZx0g", - "canonicalFilename": "test.tsx_app_component_div_onclick_1cgetmfzx0g", + "canonicalFilename": "test.tsx_App_component_div_onClick_1CGetmFZx0g", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", @@ -80,7 +80,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_div_button_onclick_f5nww9e63a4.js (ENTRY POINT)== +============================= test.tsx_App_component_div_button_onClick_f5NwW9e63a4.js (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; import { STEP } from "./test"; @@ -98,7 +98,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_div_button_onClick", "hash": "f5NwW9e63a4", - "canonicalFilename": "test.tsx_app_component_div_button_onclick_f5nww9e63a4", + "canonicalFilename": "test.tsx_App_component_div_button_onClick_f5NwW9e63a4", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", @@ -111,7 +111,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_ckepmxzlub0.js (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)== import { _fnSignal } from "@builder.io/qwik"; import { _jsxQ } from "@builder.io/qwik"; @@ -126,7 +126,7 @@ export const App_component_ckEPmXZlub0 = (props)=>{ }); const count2 = state.count * 2; return /*#__PURE__*/ _jsxQ("div", { - onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_div_onclick_1cgetmfzx0g"), "App_component_div_onClick_1CGetmFZx0g", [ + onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_div_onClick_1CGetmFZx0g"), "App_component_div_onClick_1CGetmFZx0g", [ count2, state ]) @@ -135,7 +135,7 @@ export const App_component_ckEPmXZlub0 = (props)=>{ state ], "p0.count"), 3, null), buttons.map((btn)=>/*#__PURE__*/ _jsxQ("button", { - onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_div_button_onclick_f5nww9e63a4"), "App_component_div_button_onClick_f5NwW9e63a4", [ + onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_div_button_onClick_f5NwW9e63a4"), "App_component_div_button_onClick_f5NwW9e63a4", [ btn, props, state, @@ -154,7 +154,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_functional_component_capture_props.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_functional_component_capture_props.snap index 0b53216133c..fb53edd82ba 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_functional_component_capture_props.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_functional_component_capture_props.snap @@ -26,11 +26,11 @@ export const App = component$(({count, rest: [I2, {I3, v1: [I4], I5=v2, ...I6}, import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0"), "App_component_ckEPmXZlub0")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0"), "App_component_ckEPmXZlub0")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,oBAAM,iHAYjB\"}") -============================= test.tsx_app_component_div_onclick_1cgetmfzx0g.js (ENTRY POINT)== +============================= test.tsx_App_component_div_onClick_1CGetmFZx0g.js (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; export const App_component_div_onClick_1CGetmFZx0g = ()=>{ @@ -47,7 +47,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_div_onClick", "hash": "1CGetmFZx0g", - "canonicalFilename": "test.tsx_app_component_div_onclick_1cgetmfzx0g", + "canonicalFilename": "test.tsx_App_component_div_onClick_1CGetmFZx0g", "path": "", "extension": "js", "parent": "App_component_1_w0t0o3QMovU", @@ -60,7 +60,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_ckepmxzlub0.js (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; import { useStore } from "@builder.io/qwik"; @@ -69,7 +69,7 @@ export const App_component_ckEPmXZlub0 = ({ count, rest: [I2, { I3, v1: [I4], I5 count: 0 }); const { rest: [C2, { C3, v1: [C4], C5 = v2, ...C6 }, C7 = v3, ...C8] } = foo(); - return /*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_1_w0t0o3qmovu"), "App_component_1_w0t0o3QMovU", [ + return /*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_1_w0t0o3QMovU"), "App_component_1_w0t0o3QMovU", [ C2, C3, C4, @@ -98,7 +98,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "js", "parent": null, @@ -111,7 +111,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_1_w0t0o3qmovu.js (ENTRY POINT)== +============================= test.tsx_App_component_1_w0t0o3QMovU.js (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; import { _jsxQ } from "@builder.io/qwik"; @@ -119,7 +119,7 @@ import { qrl } from "@builder.io/qwik"; export const App_component_1_w0t0o3QMovU = ()=>{ const [C2, C3, C4, C5, C6, C7, C8, I2, I3, I4, I5, I6, I7, I8, count, state] = useLexicalScope(); return /*#__PURE__*/ _jsxQ("div", { - onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_div_onclick_1cgetmfzx0g"), "App_component_div_onClick_1CGetmFZx0g", [ + onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_div_onClick_1CGetmFZx0g"), "App_component_div_onClick_1CGetmFZx0g", [ count, state ]) @@ -154,7 +154,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_1", "hash": "w0t0o3QMovU", - "canonicalFilename": "test.tsx_app_component_1_w0t0o3qmovu", + "canonicalFilename": "test.tsx_App_component_1_w0t0o3QMovU", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_getter_generation.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_getter_generation.snap index 16047acebb4..9e57776d795 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_getter_generation.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_getter_generation.snap @@ -43,12 +43,12 @@ export const Cmp = component$((props) => { import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0"), "App_component_ckEPmXZlub0")); -export const Cmp = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_cmp_component_4rykjtokjwe"), "Cmp_component_4ryKJTOKjWE")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0"), "App_component_ckEPmXZlub0")); +export const Cmp = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Cmp_component_4ryKJTOKjWE"), "Cmp_component_4ryKJTOKjWE")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,oBAAM,iHAoBhB;AAEH,OAAO,MAAM,oBAAM,iHAOhB\"}") -============================= test.tsx_cmp_component_4rykjtokjwe.js (ENTRY POINT)== +============================= test.tsx_Cmp_component_4ryKJTOKjWE.js (ENTRY POINT)== import { Fragment as _Fragment } from "@builder.io/qwik/jsx-runtime"; import { _fnSignal } from "@builder.io/qwik"; @@ -84,7 +84,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Cmp_component", "hash": "4ryKJTOKjWE", - "canonicalFilename": "test.tsx_cmp_component_4rykjtokjwe", + "canonicalFilename": "test.tsx_Cmp_component_4ryKJTOKjWE", "path": "", "extension": "js", "parent": null, @@ -97,7 +97,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_ckepmxzlub0.js (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)== import { Cmp } from "./test"; import { _IMMUTABLE } from "@builder.io/qwik"; @@ -156,7 +156,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_immutable_analysis.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_immutable_analysis.snap index c126481a457..fee88766151 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_immutable_analysis.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_immutable_analysis.snap @@ -56,7 +56,7 @@ export const App = component$((props) => { ); }); -============================= test.tsx_app_component_fragment_div_onevent_zrfduybt3xm.js (ENTRY POINT)== +============================= test.tsx_App_component_Fragment_Div_onEvent_zrFduYbT3xM.js (ENTRY POINT)== export const App_component_Fragment_Div_onEvent_zrFduYbT3xM = ()=>console.log('stuff'); @@ -69,7 +69,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_Fragment_Div_onEvent", "hash": "zrFduYbT3xM", - "canonicalFilename": "test.tsx_app_component_fragment_div_onevent_zrfduybt3xm", + "canonicalFilename": "test.tsx_App_component_Fragment_Div_onEvent_zrFduYbT3xM", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", @@ -86,11 +86,11 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0"), "App_component_ckEPmXZlub0")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0"), "App_component_ckEPmXZlub0")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAKA,OAAO,MAAM,oBAAM,iHA4ChB\"}") -============================= test.tsx_app_component_fragment_div_immutable4_2zf7ja3yti0.js (ENTRY POINT)== +============================= test.tsx_App_component_Fragment_Div_immutable4_2zF7jA3Yti0.js (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; export const App_component_Fragment_Div_immutable4_2zF7jA3Yti0 = (ev)=>{ @@ -107,7 +107,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_Fragment_Div_immutable4", "hash": "2zF7jA3Yti0", - "canonicalFilename": "test.tsx_app_component_fragment_div_immutable4_2zf7ja3yti0", + "canonicalFilename": "test.tsx_App_component_Fragment_Div_immutable4_2zF7jA3Yti0", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", @@ -120,7 +120,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_fragment_div_transparent_eedek6em1oo.js (ENTRY POINT)== +============================= test.tsx_App_component_Fragment_Div_transparent_eeDEK6EM1oo.js (ENTRY POINT)== export const App_component_Fragment_Div_transparent_eeDEK6EM1oo = ()=>{ console.log('stuff'); @@ -135,7 +135,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_Fragment_Div_transparent", "hash": "eeDEK6EM1oo", - "canonicalFilename": "test.tsx_app_component_fragment_div_transparent_eedek6em1oo", + "canonicalFilename": "test.tsx_App_component_Fragment_Div_transparent_eeDEK6EM1oo", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", @@ -148,7 +148,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_ckepmxzlub0.js (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)== import { Fragment as _Fragment } from "@builder.io/qwik/jsx-runtime"; import { _IMMUTABLE } from "@builder.io/qwik"; @@ -163,7 +163,7 @@ export const App_component_ckEPmXZlub0 = (props)=>{ const state = useStore({ count: 0 }); - const remove = /*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_remove_pu6yoc5p6sy"), "App_component_remove_pU6yOC5P6sY", [ + const remove = /*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_remove_pU6yOC5P6sY"), "App_component_remove_pU6yOC5P6sY", [ state ]); return /*#__PURE__*/ _jsxC(_Fragment, { @@ -181,15 +181,15 @@ export const App_component_ckEPmXZlub0 = (props)=>{ return window.document; }, onClick$: props.onClick$, - onEvent$: /*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_fragment_div_onevent_zrfduybt3xm"), "App_component_Fragment_Div_onEvent_zrFduYbT3xM"), - transparent$: /*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_fragment_div_transparent_eedek6em1oo"), "App_component_Fragment_Div_transparent_eeDEK6EM1oo"), + onEvent$: /*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_Fragment_Div_onEvent_zrFduYbT3xM"), "App_component_Fragment_Div_onEvent_zrFduYbT3xM"), + transparent$: /*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_Fragment_Div_transparent_eeDEK6EM1oo"), "App_component_Fragment_Div_transparent_eeDEK6EM1oo"), immutable1: "stuff", immutable2: { foo: 'bar', baz: importedValue ? true : false }, immutable3: 2, - immutable4$: /*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_fragment_div_immutable4_2zf7ja3yti0"), "App_component_Fragment_Div_immutable4_2zF7jA3Yti0", [ + immutable4$: /*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_Fragment_Div_immutable4_2zF7jA3Yti0"), "App_component_Fragment_Div_immutable4_2zF7jA3Yti0", [ state ]), immutable5: [ @@ -256,7 +256,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "js", "parent": null, @@ -269,7 +269,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_remove_pu6yoc5p6sy.js (ENTRY POINT)== +============================= test.tsx_App_component_remove_pU6yOC5P6sY.js (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; export const App_component_remove_pU6yOC5P6sY = (id)=>{ @@ -288,7 +288,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_remove", "hash": "pU6yOC5P6sY", - "canonicalFilename": "test.tsx_app_component_remove_pu6yoc5p6sy", + "canonicalFilename": "test.tsx_App_component_remove_pU6yOC5P6sY", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_import_assertion.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_import_assertion.snap index cb7c10437e2..59ffdbf6c59 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_import_assertion.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_import_assertion.snap @@ -17,11 +17,11 @@ export const Greeter = component$(() => { import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Greeter = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_greeter_component_n7hug2hhu0q"), "Greeter_component_n7HuG2hhU0Q")); +export const Greeter = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Greeter_component_n7HuG2hhU0Q"), "Greeter_component_n7HuG2hhU0Q")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAIA,OAAO,MAAM,wBAAU,yHAEpB\"}") -============================= test.tsx_greeter_component_n7hug2hhu0q.js (ENTRY POINT)== +============================= test.tsx_Greeter_component_n7HuG2hhU0Q.js (ENTRY POINT)== import json from "./foo.json" with { type: "json" @@ -39,7 +39,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Greeter_component", "hash": "n7HuG2hhU0Q", - "canonicalFilename": "test.tsx_greeter_component_n7hug2hhu0q", + "canonicalFilename": "test.tsx_Greeter_component_n7HuG2hhU0Q", "path": "", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_invalid_references.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_invalid_references.snap index 2af2fa1d0cd..eb46a9d4094 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_invalid_references.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_invalid_references.snap @@ -32,7 +32,7 @@ const [I2, { I3, v1: [I4], I5 = v2, ...I6 }, I7 = v3, ...I8] = obj; function I9() {} class I10 { } -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0"), "App_component_ckEPmXZlub0")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0"), "App_component_ckEPmXZlub0")); export { I1 as _auto_I1 }; export { I10 as _auto_I10 }; export { I2 as _auto_I2 }; @@ -46,7 +46,7 @@ export { I9 as _auto_I9 }; Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,MAAM,KAAK;AACX,MAAM,CAAC,IAAI,EAAC,EAAE,EAAE,IAAI,CAAC,GAAG,EAAE,KAAG,EAAE,EAAE,GAAG,IAAG,EAAE,KAAG,EAAE,EAAE,GAAG,GAAG,GAAG;AACzD,SAAS,MAAM;AACf,MAAM;AAAK;AAEX,OAAO,MAAM,oBAAM,iHAQjB\"}") -============================= test.tsx_app_component_ckepmxzlub0.js (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)== import { _auto_I1 as I1 } from "./test"; import { _auto_I2 as I2 } from "./test"; @@ -61,7 +61,7 @@ import { qrl } from "@builder.io/qwik"; export const App_component_ckEPmXZlub0 = (props)=>{ console.log(I1, I2, I3, I4, I5, I6, I7, I8, I9); console.log(itsok, v1, v2, v3, obj); - return /*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_1_w0t0o3qmovu"), "App_component_1_w0t0o3QMovU"); + return /*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_1_w0t0o3QMovU"), "App_component_1_w0t0o3QMovU"); }; @@ -73,7 +73,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "js", "parent": null, @@ -86,7 +86,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_1_w0t0o3qmovu.js (ENTRY POINT)== +============================= test.tsx_App_component_1_w0t0o3QMovU.js (ENTRY POINT)== import { _auto_I10 as I10 } from "./test"; import { _jsxC } from "@builder.io/qwik"; @@ -104,7 +104,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_1", "hash": "w0t0o3QMovU", - "canonicalFilename": "test.tsx_app_component_1_w0t0o3qmovu", + "canonicalFilename": "test.tsx_App_component_1_w0t0o3QMovU", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_invalid_segment_expr1.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_invalid_segment_expr1.snap index 8b186588560..b8d4bfd0571 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_invalid_segment_expr1.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_invalid_segment_expr1.snap @@ -25,11 +25,11 @@ export const App = component$(() => { import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0"), "App_component_ckEPmXZlub0")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0"), "App_component_ckEPmXZlub0")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAKA,OAAO,MAAM,oBAAM,iHASjB\"}") -============================= test.tsx_app_component_usestyles_t35nsa5uv7u.js (ENTRY POINT)== +============================= test.tsx_App_component_useStyles_t35nSa5UV7U.js (ENTRY POINT)== export const App_component_useStyles_t35nSa5UV7U = style; @@ -42,7 +42,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_useStyles", "hash": "t35nSa5UV7U", - "canonicalFilename": "test.tsx_app_component_usestyles_t35nsa5uv7u", + "canonicalFilename": "test.tsx_App_component_useStyles_t35nSa5UV7U", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", @@ -55,13 +55,13 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_ckepmxzlub0.js (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; import { useStylesQrl } from "@builder.io/qwik"; export const App_component_ckEPmXZlub0 = ()=>{ - useStylesQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_usestyles_t35nsa5uv7u"), "App_component_useStyles_t35nSa5UV7U")); - return /*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_1_w0t0o3qmovu"), "App_component_1_w0t0o3QMovU"); + useStylesQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_useStyles_t35nSa5UV7U"), "App_component_useStyles_t35nSa5UV7U")); + return /*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_1_w0t0o3QMovU"), "App_component_1_w0t0o3QMovU"); }; @@ -73,7 +73,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "js", "parent": null, @@ -86,7 +86,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_1_w0t0o3qmovu.js (ENTRY POINT)== +============================= test.tsx_App_component_1_w0t0o3QMovU.js (ENTRY POINT)== export const App_component_1_w0t0o3QMovU = render; export { _hW } from "@builder.io/qwik"; @@ -100,7 +100,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_1", "hash": "w0t0o3QMovU", - "canonicalFilename": "test.tsx_app_component_1_w0t0o3qmovu", + "canonicalFilename": "test.tsx_App_component_1_w0t0o3QMovU", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx.snap index f2e55b4078d..1a051575de9 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx.snap @@ -64,17 +64,17 @@ export const Lightweight = (props)=>{ ] }, 1, "u6_0"), 1, "u6_1"); }; -export const Foo = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_htdrsvublie"), "Foo_component_HTDRsvUbLiE"), { +export const Foo = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_HTDRsvUbLiE"), "Foo_component_HTDRsvUbLiE"), { tagName: "my-foo" }); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;;;;;AAGA,OAAO,MAAM,cAAc,CAAC;IACxB,qBACI,MAAC,iCACG;;0BACI,MAAC;0BACD,MAAC;gBAAQ,GAAG,KAAK;;;;AAIjC,EAAE;AAEF,OAAO,MAAM,oBAAM,iHAuBhB;IACC,SAAS;AACb,GAAG\"}") -============================= test.tsx_foo_component_htdrsvublie.js (ENTRY POINT)== +============================= test.tsx_Foo_component_HTDRsvUbLiE.js (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; export const Foo_component_HTDRsvUbLiE = (props)=>{ - return /*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_1_dvu6fitwgly"), "Foo_component_1_DvU6FitWglY", [ + return /*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_1_DvU6FitWglY"), "Foo_component_1_DvU6FitWglY", [ props ]); }; @@ -88,7 +88,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component", "hash": "HTDRsvUbLiE", - "canonicalFilename": "test.tsx_foo_component_htdrsvublie", + "canonicalFilename": "test.tsx_Foo_component_HTDRsvUbLiE", "path": "", "extension": "js", "parent": null, @@ -101,7 +101,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_1_dvu6fitwgly.js (ENTRY POINT)== +============================= test.tsx_Foo_component_1_DvU6FitWglY.js (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; import { Lightweight } from "./test"; @@ -152,7 +152,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_1", "hash": "DvU6FitWglY", - "canonicalFilename": "test.tsx_foo_component_1_dvu6fitwgly", + "canonicalFilename": "test.tsx_Foo_component_1_DvU6FitWglY", "path": "", "extension": "js", "parent": "Foo_component_HTDRsvUbLiE", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx_import_source.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx_import_source.snap index ca69660ce8f..ff6b71cb761 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx_import_source.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx_import_source.snap @@ -26,11 +26,11 @@ import { jsx as _jsx } from "react/jsx-runtime"; export const App = ()=>/*#__PURE__*/ _jsx("div", { onClick$: ()=>console.log('App') }); -export const App2 = qwikifyQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app2_qwikify_rkjw7ocmds4.js"), "App2_qwikify_RKJW7oCMdS4")); +export const App2 = qwikifyQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App2_qwikify_RKJW7oCMdS4.js"), "App2_qwikify_RKJW7oCMdS4")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\"AACA,0BAA0B;;;AAI1B,OAAO,MAAM,MAAM,kBACf,KAAC;QAAI,UAAU,IAAI,QAAQ,GAAG,CAAC;OACjC;AAEF,OAAO,MAAM,OAAO,gHAEjB\"}") -============================= test.tsx_app2_qwikify_rkjw7ocmds4.js (ENTRY POINT)== +============================= test.tsx_App2_qwikify_RKJW7oCMdS4.js (ENTRY POINT)== import { jsx as _jsx } from "react/jsx-runtime"; export const App2_qwikify_RKJW7oCMdS4 = ()=>/*#__PURE__*/ _jsx("div", { @@ -46,7 +46,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App2_qwikify", "hash": "RKJW7oCMdS4", - "canonicalFilename": "test.tsx_app2_qwikify_rkjw7ocmds4", + "canonicalFilename": "test.tsx_App2_qwikify_RKJW7oCMdS4", "path": "", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx_keyed.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx_keyed.snap index a8b6abdb6bd..86162077d12 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx_keyed.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx_keyed.snap @@ -24,11 +24,11 @@ export const App = component$((props: Stuff) => { import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0.js"), "App_component_ckEPmXZlub0")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0.js"), "App_component_ckEPmXZlub0")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,oBAAM,oHAUhB\"}") -============================= test.tsx_app_component_ckepmxzlub0.js (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)== import { Fragment as _Fragment } from "@builder.io/qwik/jsx-runtime"; import { _IMMUTABLE } from "@builder.io/qwik"; @@ -65,7 +65,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx_keyed_dev.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx_keyed_dev.snap index 2ecdc876dbe..13e75f7aef9 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx_keyed_dev.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx_keyed_dev.snap @@ -24,7 +24,7 @@ export const App = component$((props: Stuff) => { import { componentQrl } from "@builder.io/qwik"; import { qrlDEV } from "@builder.io/qwik"; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrlDEV(()=>import("./index.tsx_app_component_kglyfbhvjc0.js"), "App_component_KGLYFBhvJc0", { +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrlDEV(()=>import("./index.tsx_App_component_KGLYFBhvJc0.js"), "App_component_KGLYFBhvJc0", { file: "/src/project/project/index.tsx", lo: 90, hi: 348, @@ -33,7 +33,7 @@ export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrlDEV(()=>import(". Some("{\"version\":3,\"sources\":[\"/src/project/project/index.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,oBAAM;;;;;IAUhB\"}") -============================= project/index.tsx_app_component_kglyfbhvjc0.js (ENTRY POINT)== +============================= project/index.tsx_App_component_KGLYFBhvJc0.js (ENTRY POINT)== import { Fragment as _Fragment } from "@builder.io/qwik/jsx-runtime"; import { _IMMUTABLE } from "@builder.io/qwik"; @@ -94,7 +94,7 @@ Some("{\"version\":3,\"sources\":[\"/src/project/project/index.tsx\"],\"names\": "entry": null, "displayName": "index.tsx_App_component", "hash": "KGLYFBhvJc0", - "canonicalFilename": "index.tsx_app_component_kglyfbhvjc0", + "canonicalFilename": "index.tsx_App_component_KGLYFBhvJc0", "path": "project", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx_listeners.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx_listeners.snap index 6235b727974..abbff3e9d28 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx_listeners.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_jsx_listeners.snap @@ -38,7 +38,7 @@ export const Foo = component$(() => { tagName: "my-foo", }); -============================= test.tsx_foo_component_div_host_ondocumentscroll_zip7mifsjry.js (ENTRY POINT)== +============================= test.tsx_Foo_component_div_host_onDocumentScroll_Zip7mifsjRY.js (ENTRY POINT)== export const Foo_component_div_host_onDocumentScroll_Zip7mifsjRY = ()=>console.log('host:onDocument:scroll'); @@ -51,7 +51,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_div_host_onDocumentScroll", "hash": "Zip7mifsjRY", - "canonicalFilename": "test.tsx_foo_component_div_host_ondocumentscroll_zip7mifsjry", + "canonicalFilename": "test.tsx_Foo_component_div_host_onDocumentScroll_Zip7mifsjRY", "path": "", "extension": "js", "parent": "Foo_component_1_DvU6FitWglY", @@ -68,17 +68,17 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Foo = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_htdrsvublie"), "Foo_component_HTDRsvUbLiE"), { +export const Foo = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_HTDRsvUbLiE"), "Foo_component_HTDRsvUbLiE"), { tagName: "my-foo" }); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,oBAAM,iHA0BhB;IACC,SAAS;AACb,GAAG\"}") -============================= test.tsx_foo_component_htdrsvublie.js (ENTRY POINT)== +============================= test.tsx_Foo_component_HTDRsvUbLiE.js (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; export const Foo_component_HTDRsvUbLiE = ()=>{ - return /*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_1_dvu6fitwgly"), "Foo_component_1_DvU6FitWglY"); + return /*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_1_DvU6FitWglY"), "Foo_component_1_DvU6FitWglY"); }; @@ -90,7 +90,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component", "hash": "HTDRsvUbLiE", - "canonicalFilename": "test.tsx_foo_component_htdrsvublie", + "canonicalFilename": "test.tsx_Foo_component_HTDRsvUbLiE", "path": "", "extension": "js", "parent": null, @@ -103,7 +103,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_div_host_onclick_cpeh970jbey.js (ENTRY POINT)== +============================= test.tsx_Foo_component_div_host_onClick_cPEH970JbEY.js (ENTRY POINT)== export const Foo_component_div_host_onClick_cPEH970JbEY = ()=>console.log('host:onClick$'); @@ -116,7 +116,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_div_host_onClick", "hash": "cPEH970JbEY", - "canonicalFilename": "test.tsx_foo_component_div_host_onclick_cpeh970jbey", + "canonicalFilename": "test.tsx_Foo_component_div_host_onClick_cPEH970JbEY", "path": "", "extension": "js", "parent": "Foo_component_1_DvU6FitWglY", @@ -129,26 +129,26 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_1_dvu6fitwgly.js (ENTRY POINT)== +============================= test.tsx_Foo_component_1_DvU6FitWglY.js (ENTRY POINT)== import { _jsxQ } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; export const Foo_component_1_DvU6FitWglY = ()=>{ - const handler = /*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_handler_h10xztd0e7w"), "Foo_component_handler_H10xZtD0e7w"); + const handler = /*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_handler_H10xZtD0e7w"), "Foo_component_handler_H10xZtD0e7w"); return /*#__PURE__*/ _jsxQ("div", null, { - onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_div_onclick_m48dyiidsjw"), "Foo_component_div_onClick_M48DYiidSJw"), - onDocumentScroll$: /*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_div_ondocumentscroll_rwfftfivukc"), "Foo_component_div_onDocumentScroll_rwFFtFiVuKc"), - onDocumentScroll$: /*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_div_ondocumentscroll_1_cwneogpmtzi"), "Foo_component_div_onDocumentScroll_1_CwneoGpmTZI"), - "on-cLick$": /*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_div_on_click_ioasjw8vyjc"), "Foo_component_div_on_cLick_IoAsJW8vYJc"), - "onDocument-sCroll$": /*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_div_ondocument_scroll_5vnik61pzom"), "Foo_component_div_onDocument_sCroll_5VNik61PZOM"), - "onDocument-scroLL$": /*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_div_ondocument_scroll_1q0sgr8te3g"), "Foo_component_div_onDocument_scroLL_1q0Sgr8te3g"), - "host:onClick$": /*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_div_host_onclick_cpeh970jbey"), "Foo_component_div_host_onClick_cPEH970JbEY"), - "host:onDocumentScroll$": /*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_div_host_ondocumentscroll_zip7mifsjry"), "Foo_component_div_host_onDocumentScroll_Zip7mifsjRY"), - "host:onDocumentScroll$": /*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_div_host_ondocumentscroll_1_em1lspk7jvg"), "Foo_component_div_host_onDocumentScroll_1_Em1LspK7JVg"), + onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_div_onClick_M48DYiidSJw"), "Foo_component_div_onClick_M48DYiidSJw"), + onDocumentScroll$: /*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_div_onDocumentScroll_rwFFtFiVuKc"), "Foo_component_div_onDocumentScroll_rwFFtFiVuKc"), + onDocumentScroll$: /*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_div_onDocumentScroll_1_CwneoGpmTZI"), "Foo_component_div_onDocumentScroll_1_CwneoGpmTZI"), + "on-cLick$": /*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_div_on_cLick_IoAsJW8vYJc"), "Foo_component_div_on_cLick_IoAsJW8vYJc"), + "onDocument-sCroll$": /*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_div_onDocument_sCroll_5VNik61PZOM"), "Foo_component_div_onDocument_sCroll_5VNik61PZOM"), + "onDocument-scroLL$": /*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_div_onDocument_scroLL_1q0Sgr8te3g"), "Foo_component_div_onDocument_scroLL_1q0Sgr8te3g"), + "host:onClick$": /*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_div_host_onClick_cPEH970JbEY"), "Foo_component_div_host_onClick_cPEH970JbEY"), + "host:onDocumentScroll$": /*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_div_host_onDocumentScroll_Zip7mifsjRY"), "Foo_component_div_host_onDocumentScroll_Zip7mifsjRY"), + "host:onDocumentScroll$": /*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_div_host_onDocumentScroll_1_Em1LspK7JVg"), "Foo_component_div_host_onDocumentScroll_1_Em1LspK7JVg"), onKeyup$: handler, "onDocument:keyup$": handler, "onWindow:keyup$": handler, - custom$: /*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_div_custom_pyhnxab17ms"), "Foo_component_div_custom_pyHnxab17ms") + custom$: /*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_div_custom_pyHnxab17ms"), "Foo_component_div_custom_pyHnxab17ms") }, null, 3, "u6_0"); }; export { _hW } from "@builder.io/qwik"; @@ -162,7 +162,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_1", "hash": "DvU6FitWglY", - "canonicalFilename": "test.tsx_foo_component_1_dvu6fitwgly", + "canonicalFilename": "test.tsx_Foo_component_1_DvU6FitWglY", "path": "", "extension": "js", "parent": "Foo_component_HTDRsvUbLiE", @@ -175,7 +175,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_div_host_ondocumentscroll_1_em1lspk7jvg.js (ENTRY POINT)== +============================= test.tsx_Foo_component_div_host_onDocumentScroll_1_Em1LspK7JVg.js (ENTRY POINT)== export const Foo_component_div_host_onDocumentScroll_1_Em1LspK7JVg = ()=>console.log('host:onWindow:scroll'); @@ -188,7 +188,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_div_host_onDocumentScroll_1", "hash": "Em1LspK7JVg", - "canonicalFilename": "test.tsx_foo_component_div_host_ondocumentscroll_1_em1lspk7jvg", + "canonicalFilename": "test.tsx_Foo_component_div_host_onDocumentScroll_1_Em1LspK7JVg", "path": "", "extension": "js", "parent": "Foo_component_1_DvU6FitWglY", @@ -201,7 +201,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_div_custom_pyhnxab17ms.js (ENTRY POINT)== +============================= test.tsx_Foo_component_div_custom_pyHnxab17ms.js (ENTRY POINT)== export const Foo_component_div_custom_pyHnxab17ms = ()=>console.log('custom'); @@ -214,7 +214,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_div_custom", "hash": "pyHnxab17ms", - "canonicalFilename": "test.tsx_foo_component_div_custom_pyhnxab17ms", + "canonicalFilename": "test.tsx_Foo_component_div_custom_pyHnxab17ms", "path": "", "extension": "js", "parent": "Foo_component_1_DvU6FitWglY", @@ -227,7 +227,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_div_ondocument_scroll_1q0sgr8te3g.js (ENTRY POINT)== +============================= test.tsx_Foo_component_div_onDocument_scroLL_1q0Sgr8te3g.js (ENTRY POINT)== export const Foo_component_div_onDocument_scroLL_1q0Sgr8te3g = ()=>console.log('onDocument-scroLL'); @@ -240,7 +240,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_div_onDocument_scroLL", "hash": "1q0Sgr8te3g", - "canonicalFilename": "test.tsx_foo_component_div_ondocument_scroll_1q0sgr8te3g", + "canonicalFilename": "test.tsx_Foo_component_div_onDocument_scroLL_1q0Sgr8te3g", "path": "", "extension": "js", "parent": "Foo_component_1_DvU6FitWglY", @@ -253,7 +253,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_div_ondocumentscroll_1_cwneogpmtzi.js (ENTRY POINT)== +============================= test.tsx_Foo_component_div_onDocumentScroll_1_CwneoGpmTZI.js (ENTRY POINT)== export const Foo_component_div_onDocumentScroll_1_CwneoGpmTZI = ()=>console.log('onWindowScroll'); @@ -266,7 +266,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_div_onDocumentScroll_1", "hash": "CwneoGpmTZI", - "canonicalFilename": "test.tsx_foo_component_div_ondocumentscroll_1_cwneogpmtzi", + "canonicalFilename": "test.tsx_Foo_component_div_onDocumentScroll_1_CwneoGpmTZI", "path": "", "extension": "js", "parent": "Foo_component_1_DvU6FitWglY", @@ -279,7 +279,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_div_on_click_ioasjw8vyjc.js (ENTRY POINT)== +============================= test.tsx_Foo_component_div_on_cLick_IoAsJW8vYJc.js (ENTRY POINT)== export const Foo_component_div_on_cLick_IoAsJW8vYJc = ()=>console.log('on-cLick$'); @@ -292,7 +292,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_div_on_cLick", "hash": "IoAsJW8vYJc", - "canonicalFilename": "test.tsx_foo_component_div_on_click_ioasjw8vyjc", + "canonicalFilename": "test.tsx_Foo_component_div_on_cLick_IoAsJW8vYJc", "path": "", "extension": "js", "parent": "Foo_component_1_DvU6FitWglY", @@ -305,7 +305,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_div_onclick_m48dyiidsjw.js (ENTRY POINT)== +============================= test.tsx_Foo_component_div_onClick_M48DYiidSJw.js (ENTRY POINT)== export const Foo_component_div_onClick_M48DYiidSJw = ()=>console.log('onClick$'); @@ -318,7 +318,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_div_onClick", "hash": "M48DYiidSJw", - "canonicalFilename": "test.tsx_foo_component_div_onclick_m48dyiidsjw", + "canonicalFilename": "test.tsx_Foo_component_div_onClick_M48DYiidSJw", "path": "", "extension": "js", "parent": "Foo_component_1_DvU6FitWglY", @@ -331,7 +331,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_div_ondocumentscroll_rwfftfivukc.js (ENTRY POINT)== +============================= test.tsx_Foo_component_div_onDocumentScroll_rwFFtFiVuKc.js (ENTRY POINT)== export const Foo_component_div_onDocumentScroll_rwFFtFiVuKc = ()=>console.log('onDocumentScroll'); @@ -344,7 +344,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_div_onDocumentScroll", "hash": "rwFFtFiVuKc", - "canonicalFilename": "test.tsx_foo_component_div_ondocumentscroll_rwfftfivukc", + "canonicalFilename": "test.tsx_Foo_component_div_onDocumentScroll_rwFFtFiVuKc", "path": "", "extension": "js", "parent": "Foo_component_1_DvU6FitWglY", @@ -357,7 +357,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_handler_h10xztd0e7w.js (ENTRY POINT)== +============================= test.tsx_Foo_component_handler_H10xZtD0e7w.js (ENTRY POINT)== export const Foo_component_handler_H10xZtD0e7w = ()=>console.log('reused'); export { _hW } from "@builder.io/qwik"; @@ -371,7 +371,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_handler", "hash": "H10xZtD0e7w", - "canonicalFilename": "test.tsx_foo_component_handler_h10xztd0e7w", + "canonicalFilename": "test.tsx_Foo_component_handler_H10xZtD0e7w", "path": "", "extension": "js", "parent": "Foo_component_1_DvU6FitWglY", @@ -384,7 +384,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_div_ondocument_scroll_5vnik61pzom.js (ENTRY POINT)== +============================= test.tsx_Foo_component_div_onDocument_sCroll_5VNik61PZOM.js (ENTRY POINT)== export const Foo_component_div_onDocument_sCroll_5VNik61PZOM = ()=>console.log('onDocument-sCroll'); @@ -397,7 +397,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_div_onDocument_sCroll", "hash": "5VNik61PZOM", - "canonicalFilename": "test.tsx_foo_component_div_ondocument_scroll_5vnik61pzom", + "canonicalFilename": "test.tsx_Foo_component_div_onDocument_sCroll_5VNik61PZOM", "path": "", "extension": "js", "parent": "Foo_component_1_DvU6FitWglY", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_lightweight_functional.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_lightweight_functional.snap index d6728445ab9..948162da00b 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_lightweight_functional.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_lightweight_functional.snap @@ -31,7 +31,7 @@ export const ButtonArrow = ({text, color}) => { ); } -============================= test.tsx_foo_component_htdrsvublie.tsx (ENTRY POINT)== +============================= test.tsx_Foo_component_HTDRsvUbLiE.tsx (ENTRY POINT)== import { Button } from "./test"; import { ButtonArrow } from "./test"; @@ -51,7 +51,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component", "hash": "HTDRsvUbLiE", - "canonicalFilename": "test.tsx_foo_component_htdrsvublie", + "canonicalFilename": "test.tsx_Foo_component_HTDRsvUbLiE", "path": "", "extension": "tsx", "parent": null, @@ -64,7 +64,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_buttonarrow_button_onclick_9npo43figik.tsx (ENTRY POINT)== +============================= test.tsx_ButtonArrow_button_onClick_9npo43fIGik.tsx (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; export const ButtonArrow_button_onClick_9npo43fIGik = ()=>{ @@ -81,7 +81,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_ButtonArrow_button_onClick", "hash": "9npo43fIGik", - "canonicalFilename": "test.tsx_buttonarrow_button_onclick_9npo43figik", + "canonicalFilename": "test.tsx_ButtonArrow_button_onClick_9npo43fIGik", "path": "", "extension": "tsx", "parent": null, @@ -94,7 +94,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_button_button_onclick_nsm0jyv00jw.tsx (ENTRY POINT)== +============================= test.tsx_Button_button_onClick_NsM0JYV00Jw.tsx (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; export const Button_button_onClick_NsM0JYV00Jw = ()=>{ @@ -111,7 +111,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Button_button_onClick", "hash": "NsM0JYV00Jw", - "canonicalFilename": "test.tsx_button_button_onclick_nsm0jyv00jw", + "canonicalFilename": "test.tsx_Button_button_onClick_NsM0JYV00Jw", "path": "", "extension": "tsx", "parent": null, @@ -128,17 +128,17 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Foo = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_htdrsvublie"), "Foo_component_HTDRsvUbLiE"), { +export const Foo = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_HTDRsvUbLiE"), "Foo_component_HTDRsvUbLiE"), { tagName: "my-foo" }); export function Button({ text, color }) { - return ; } export const ButtonArrow = ({ text, color })=>{ - return ; diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_manual_chunks.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_manual_chunks.snap index 048069b9641..95e29fa6ed9 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_manual_chunks.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_manual_chunks.snap @@ -45,7 +45,7 @@ export const Child = component$(() => { ); }); -============================= test.tsx_parent_component_usetask_gdh1etuwqbu.js == +============================= test.tsx_Parent_component_useTask_gDH1EtUWqBU.js == import { useLexicalScope } from "@builder.io/qwik"; import mongo from "mongodb"; @@ -66,7 +66,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": "test.tsx_entry_Parent", "displayName": "test.tsx_Parent_component_useTask", "hash": "gDH1EtUWqBU", - "canonicalFilename": "test.tsx_parent_component_usetask_gdh1etuwqbu", + "canonicalFilename": "test.tsx_Parent_component_useTask_gDH1EtUWqBU", "path": "", "extension": "js", "parent": "Parent_component_0TaiDayHrlo", @@ -83,12 +83,12 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Parent = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_parent_component_0taidayhrlo"), "Parent_component_0TaiDayHrlo")); -export const Child = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_child_component_9gyf01gdkqw"), "Child_component_9GyF01GDKqw")); +export const Parent = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Parent_component_0TaiDayHrlo"), "Parent_component_0TaiDayHrlo")); +export const Child = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Child_component_9GyF01GDKqw"), "Child_component_9GyF01GDKqw")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAKA,OAAO,MAAM,uBAAS,uHAgBnB;AAEH,OAAO,MAAM,sBAAQ,qHAelB\"}") -============================= test.tsx_child_component_usetask_oh4n7zeqjku.js == +============================= test.tsx_Child_component_useTask_Oh4n7ZeqJkU.js == import { useLexicalScope } from "@builder.io/qwik"; import mongo from "mongodb"; @@ -107,7 +107,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": "test.tsx_entry_Child", "displayName": "test.tsx_Child_component_useTask", "hash": "Oh4n7ZeqJkU", - "canonicalFilename": "test.tsx_child_component_usetask_oh4n7zeqjku", + "canonicalFilename": "test.tsx_Child_component_useTask_Oh4n7ZeqJkU", "path": "", "extension": "js", "parent": "Child_component_9GyF01GDKqw", @@ -120,7 +120,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_parent_component_0taidayhrlo.js == +============================= test.tsx_Parent_component_0TaiDayHrlo.js == import { _fnSignal } from "@builder.io/qwik"; import { _jsxQ } from "@builder.io/qwik"; @@ -132,11 +132,11 @@ export const Parent_component_0TaiDayHrlo = ()=>{ text: '' }); // Double count watch - useTaskQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_parent_component_usetask_gdh1etuwqbu"), "Parent_component_useTask_gDH1EtUWqBU", [ + useTaskQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Parent_component_useTask_gDH1EtUWqBU"), "Parent_component_useTask_gDH1EtUWqBU", [ state ])); return /*#__PURE__*/ _jsxQ("div", null, { - onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_parent_component_div_onclick_c5xe49nqd3a"), "Parent_component_div_onClick_C5XE49Nqd3A") + onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_Parent_component_div_onClick_C5XE49Nqd3A"), "Parent_component_div_onClick_C5XE49Nqd3A") }, _fnSignal((p0)=>p0.text, [ state ], "p0.text"), 3, "u6_0"); @@ -151,7 +151,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": "test.tsx_entry_Parent", "displayName": "test.tsx_Parent_component", "hash": "0TaiDayHrlo", - "canonicalFilename": "test.tsx_parent_component_0taidayhrlo", + "canonicalFilename": "test.tsx_Parent_component_0TaiDayHrlo", "path": "", "extension": "js", "parent": null, @@ -164,7 +164,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_parent_component_div_onclick_c5xe49nqd3a.js (ENTRY POINT)== +============================= test.tsx_Parent_component_div_onClick_C5XE49Nqd3A.js (ENTRY POINT)== export const Parent_component_div_onClick_C5XE49Nqd3A = ()=>console.log('parent'); @@ -177,7 +177,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Parent_component_div_onClick", "hash": "C5XE49Nqd3A", - "canonicalFilename": "test.tsx_parent_component_div_onclick_c5xe49nqd3a", + "canonicalFilename": "test.tsx_Parent_component_div_onClick_C5XE49Nqd3A", "path": "", "extension": "js", "parent": "Parent_component_0TaiDayHrlo", @@ -190,7 +190,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_child_component_9gyf01gdkqw.js == +============================= test.tsx_Child_component_9GyF01GDKqw.js == import { _fnSignal } from "@builder.io/qwik"; import { _jsxQ } from "@builder.io/qwik"; @@ -202,11 +202,11 @@ export const Child_component_9GyF01GDKqw = ()=>{ text: '' }); // Double count watch - useTaskQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_child_component_usetask_oh4n7zeqjku"), "Child_component_useTask_Oh4n7ZeqJkU", [ + useTaskQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Child_component_useTask_Oh4n7ZeqJkU"), "Child_component_useTask_Oh4n7ZeqJkU", [ state ])); return /*#__PURE__*/ _jsxQ("div", null, { - onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_child_component_div_onclick_ellivsnaioq"), "Child_component_div_onClick_elliVSnAiOQ") + onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_Child_component_div_onClick_elliVSnAiOQ"), "Child_component_div_onClick_elliVSnAiOQ") }, _fnSignal((p0)=>p0.text, [ state ], "p0.text"), 3, "u6_1"); @@ -221,7 +221,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": "test.tsx_entry_Child", "displayName": "test.tsx_Child_component", "hash": "9GyF01GDKqw", - "canonicalFilename": "test.tsx_child_component_9gyf01gdkqw", + "canonicalFilename": "test.tsx_Child_component_9GyF01GDKqw", "path": "", "extension": "js", "parent": null, @@ -234,7 +234,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_child_component_div_onclick_ellivsnaioq.js (ENTRY POINT)== +============================= test.tsx_Child_component_div_onClick_elliVSnAiOQ.js (ENTRY POINT)== export const Child_component_div_onClick_elliVSnAiOQ = ()=>console.log('child'); @@ -247,7 +247,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Child_component_div_onClick", "hash": "elliVSnAiOQ", - "canonicalFilename": "test.tsx_child_component_div_onclick_ellivsnaioq", + "canonicalFilename": "test.tsx_Child_component_div_onClick_elliVSnAiOQ", "path": "", "extension": "js", "parent": "Child_component_9GyF01GDKqw", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_multi_capture.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_multi_capture.snap index 32cb9c6373a..44283be84ae 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_multi_capture.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_multi_capture.snap @@ -30,11 +30,11 @@ export const Bar = component$(({bar}) => { }); }) -============================= test.tsx_foo_component_htdrsvublie.jsx (ENTRY POINT)== +============================= test.tsx_Foo_component_HTDRsvUbLiE.jsx (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; export const Foo_component_HTDRsvUbLiE = (props)=>{ - return /*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_1_dvu6fitwgly"), "Foo_component_1_DvU6FitWglY", [ + return /*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_1_DvU6FitWglY"), "Foo_component_1_DvU6FitWglY", [ props ]); }; @@ -48,7 +48,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component", "hash": "HTDRsvUbLiE", - "canonicalFilename": "test.tsx_foo_component_htdrsvublie", + "canonicalFilename": "test.tsx_Foo_component_HTDRsvUbLiE", "path": "", "extension": "jsx", "parent": null, @@ -65,16 +65,16 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Foo = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_htdrsvublie"), "Foo_component_HTDRsvUbLiE")); -export const Bar = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_bar_component_l80ps8hxf1y"), "Bar_component_L80pS8Hxf1Y")); +export const Foo = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_HTDRsvUbLiE"), "Foo_component_HTDRsvUbLiE")); +export const Bar = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Bar_component_L80pS8Hxf1Y"), "Bar_component_L80pS8Hxf1Y")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,oBAAM,iHAUjB;AAEF,OAAO,MAAM,oBAAM,iHAQjB\"}") -============================= test.tsx_bar_component_l80ps8hxf1y.jsx (ENTRY POINT)== +============================= test.tsx_Bar_component_L80pS8Hxf1Y.jsx (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; export const Bar_component_L80pS8Hxf1Y = (props)=>{ - return /*#__PURE__*/ qrl(()=>import("./test.tsx_bar_component_1_0xsynsnvu3k"), "Bar_component_1_0xSyNSnVu3k", [ + return /*#__PURE__*/ qrl(()=>import("./test.tsx_Bar_component_1_0xSyNSnVu3k"), "Bar_component_1_0xSyNSnVu3k", [ props ]); }; @@ -88,7 +88,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Bar_component", "hash": "L80pS8Hxf1Y", - "canonicalFilename": "test.tsx_bar_component_l80ps8hxf1y", + "canonicalFilename": "test.tsx_Bar_component_L80pS8Hxf1Y", "path": "", "extension": "jsx", "parent": null, @@ -101,7 +101,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_1_dvu6fitwgly.jsx (ENTRY POINT)== +============================= test.tsx_Foo_component_1_DvU6FitWglY.jsx (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; export const Foo_component_1_DvU6FitWglY = ()=>{ @@ -122,7 +122,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_1", "hash": "DvU6FitWglY", - "canonicalFilename": "test.tsx_foo_component_1_dvu6fitwgly", + "canonicalFilename": "test.tsx_Foo_component_1_DvU6FitWglY", "path": "", "extension": "jsx", "parent": "Foo_component_HTDRsvUbLiE", @@ -135,7 +135,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_bar_component_1_0xsynsnvu3k.jsx (ENTRY POINT)== +============================= test.tsx_Bar_component_1_0xSyNSnVu3k.jsx (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; export const Bar_component_1_0xSyNSnVu3k = ()=>{ @@ -155,7 +155,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Bar_component_1", "hash": "0xSyNSnVu3k", - "canonicalFilename": "test.tsx_bar_component_1_0xsynsnvu3k", + "canonicalFilename": "test.tsx_Bar_component_1_0xSyNSnVu3k", "path": "", "extension": "jsx", "parent": "Bar_component_L80pS8Hxf1Y", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_noop_dev_mode.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_noop_dev_mode.snap index bb4234a6e8d..a3891244dce 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_noop_dev_mode.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_noop_dev_mode.snap @@ -34,7 +34,7 @@ export const App = component$(() => { import { componentQrl } from "@builder.io/qwik"; import { qrlDEV } from "@builder.io/qwik"; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrlDEV(()=>import("./test.tsx_app_component_ckepmxzlub0"), "App_component_ckEPmXZlub0", { +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrlDEV(()=>import("./test.tsx_App_component_ckEPmXZlub0"), "App_component_ckEPmXZlub0", { file: "/user/qwik/src/test.tsx", lo: 107, hi: 569, @@ -43,7 +43,7 @@ export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrlDEV(()=>import(". Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,oBAAM;;;;;IAoBhB\"}") -============================= test.tsx_app_component_ckepmxzlub0.js (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)== import { _jsxC } from "@builder.io/qwik"; import { _jsxQ } from "@builder.io/qwik"; @@ -104,7 +104,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_of_synchronous_qrl.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_of_synchronous_qrl.snap index 9454dfbd721..8938ceb8a4b 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_of_synchronous_qrl.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_of_synchronous_qrl.snap @@ -27,11 +27,11 @@ expression: output import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_luxexe0dqrg"), "test_component_LUXeXe0DQrg")); +export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_LUXeXe0DQrg"), "test_component_LUXeXe0DQrg")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGQ,6BAAe,mHAaZ\"}") -============================= test.tsx_test_component_luxexe0dqrg.js (ENTRY POINT)== +============================= test.tsx_test_component_LUXeXe0DQrg.js (ENTRY POINT)== import { Fragment as _Fragment } from "@builder.io/qwik/jsx-runtime"; import { _jsxC } from "@builder.io/qwik"; @@ -67,7 +67,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_test_component", "hash": "LUXeXe0DQrg", - "canonicalFilename": "test.tsx_test_component_luxexe0dqrg", + "canonicalFilename": "test.tsx_test_component_LUXeXe0DQrg", "path": "", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_preserve_filenames_segments.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_preserve_filenames_segments.snap index fe0b8ae047d..327a95e6a40 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_preserve_filenames_segments.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_preserve_filenames_segments.snap @@ -23,12 +23,12 @@ export const foo = () => console.log('foo'); import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0.js"), "App_component_ckEPmXZlub0")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0.js"), "App_component_ckEPmXZlub0")); export const foo = ()=>console.log('foo'); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,oBAAM,oHAOhB;AAEH,OAAO,MAAM,MAAM,IAAM,QAAQ,GAAG,CAAC,OAAO\"}") -============================= test.tsx_app_component_ckepmxzlub0.js (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)== import { _jsxC } from "@builder.io/qwik"; import { _jsxQ } from "@builder.io/qwik"; @@ -39,7 +39,7 @@ export const App_component_ckEPmXZlub0 = (props)=>{ return /*#__PURE__*/ _jsxC(Cmp, { children: /*#__PURE__*/ _jsxQ("p", null, { class: "stuff", - onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_cmp_p_onclick_vuxzfutkpto.js"), "App_component_Cmp_p_onClick_vuXzfUTkpto") + onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_Cmp_p_onClick_vuXzfUTkpto.js"), "App_component_Cmp_p_onClick_vuXzfUTkpto") }, "Hello Qwik", 3, null) }, 3, "u6_0"); }; @@ -53,7 +53,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "js", "parent": null, @@ -66,7 +66,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_cmp_p_onclick_vuxzfutkpto.js (ENTRY POINT)== +============================= test.tsx_App_component_Cmp_p_onClick_vuXzfUTkpto.js (ENTRY POINT)== export const App_component_Cmp_p_onClick_vuXzfUTkpto = ()=>console.log('warn'); @@ -79,7 +79,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_Cmp_p_onClick", "hash": "vuXzfUTkpto", - "canonicalFilename": "test.tsx_app_component_cmp_p_onclick_vuxzfutkpto", + "canonicalFilename": "test.tsx_App_component_Cmp_p_onClick_vuXzfUTkpto", "path": "", "extension": "js", "parent": "App_component_ckEPmXZlub0", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_prod_node.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_prod_node.snap index 175d4bb8591..58c635d694d 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_prod_node.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_prod_node.snap @@ -18,14 +18,14 @@ export const Foo = component$(() => { ); }); -============================= test.tsx_foo_component_htdrsvublie.tsx (ENTRY POINT)== +============================= test.tsx_Foo_component_HTDRsvUbLiE.tsx (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; export const s_HTDRsvUbLiE = ()=>{ return
-
import("./test.tsx_foo_component_div_div_onclick_9dcjc0ujddo"), "s_9DcJc0uJDDo")}/> -
import("./test.tsx_foo_component_div_div_onclick_1_rjqdy8i0mxc"), "s_RjQdy8I0MXc")}/> -
import("./test.tsx_foo_component_div_div_onclick_2_w9ptfrbvk1e"), "s_w9ptFRBVK1E")}/> +
import("./test.tsx_Foo_component_div_div_onClick_9DcJc0uJDDo"), "s_9DcJc0uJDDo")}/> +
import("./test.tsx_Foo_component_div_div_onClick_1_RjQdy8I0MXc"), "s_RjQdy8I0MXc")}/> +
import("./test.tsx_Foo_component_div_div_onClick_2_w9ptFRBVK1E"), "s_w9ptFRBVK1E")}/>
; }; @@ -38,7 +38,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component", "hash": "HTDRsvUbLiE", - "canonicalFilename": "test.tsx_foo_component_htdrsvublie", + "canonicalFilename": "test.tsx_Foo_component_HTDRsvUbLiE", "path": "", "extension": "tsx", "parent": null, @@ -51,7 +51,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_div_div_onclick_9dcjc0ujddo.tsx (ENTRY POINT)== +============================= test.tsx_Foo_component_div_div_onClick_9DcJc0uJDDo.tsx (ENTRY POINT)== export const s_9DcJc0uJDDo = ()=>console.log('first'); @@ -64,7 +64,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_div_div_onClick", "hash": "9DcJc0uJDDo", - "canonicalFilename": "test.tsx_foo_component_div_div_onclick_9dcjc0ujddo", + "canonicalFilename": "test.tsx_Foo_component_div_div_onClick_9DcJc0uJDDo", "path": "", "extension": "tsx", "parent": "s_HTDRsvUbLiE", @@ -77,7 +77,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_div_div_onclick_2_w9ptfrbvk1e.tsx (ENTRY POINT)== +============================= test.tsx_Foo_component_div_div_onClick_2_w9ptFRBVK1E.tsx (ENTRY POINT)== export const s_w9ptFRBVK1E = ()=>console.log('third'); @@ -90,7 +90,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_div_div_onClick_2", "hash": "w9ptFRBVK1E", - "canonicalFilename": "test.tsx_foo_component_div_div_onclick_2_w9ptfrbvk1e", + "canonicalFilename": "test.tsx_Foo_component_div_div_onClick_2_w9ptFRBVK1E", "path": "", "extension": "tsx", "parent": "s_HTDRsvUbLiE", @@ -103,7 +103,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_div_div_onclick_1_rjqdy8i0mxc.tsx (ENTRY POINT)== +============================= test.tsx_Foo_component_div_div_onClick_1_RjQdy8I0MXc.tsx (ENTRY POINT)== export const s_RjQdy8I0MXc = ()=>console.log('second'); @@ -116,7 +116,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_div_div_onClick_1", "hash": "RjQdy8I0MXc", - "canonicalFilename": "test.tsx_foo_component_div_div_onclick_1_rjqdy8i0mxc", + "canonicalFilename": "test.tsx_Foo_component_div_div_onClick_1_RjQdy8I0MXc", "path": "", "extension": "tsx", "parent": "s_HTDRsvUbLiE", @@ -133,7 +133,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Foo = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_htdrsvublie"), "s_HTDRsvUbLiE")); +export const Foo = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_HTDRsvUbLiE"), "s_HTDRsvUbLiE")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,oBAAM,qGAQhB\"}") diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_qwik_conflict.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_qwik_conflict.snap index 736f0aed8fd..2e333cb1aa0 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_qwik_conflict.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_qwik_conflict.snap @@ -47,16 +47,16 @@ export const hW = 12; export const handleWatch = 42; const componentQrl1 = ()=>console.log('not this', qrl1()); componentQrl1(); -export const Foo = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_htdrsvublie"), "Foo_component_HTDRsvUbLiE"), { +export const Foo = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_HTDRsvUbLiE"), "Foo_component_HTDRsvUbLiE"), { tagName: "my-foo" }); -export const Root = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_root_component_royhjyacbye"), "Root_component_royhjYaCbYE"), { +export const Root = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Root_component_royhjYaCbYE"), "Root_component_royhjYaCbYE"), { tagName: "my-foo" }); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAEA,SAAS,OAAA,IAAG,QAAQ,wBAAwB;AAE5C,OAAO,MAAM,KAAK,GAAG;AACrB,OAAO,MAAM,cAAc,GAAG;AAE9B,MAAM,gBAAe,IAAM,QAAQ,GAAG,CAAC,YAAY;AAEnD;AACA,OAAO,MAAM,oBAAM,iHAQhB;IACC,SAAS;AACb,GAAG;AAEH,OAAO,MAAM,qBAAO,mHAOjB;IACC,SAAS;AACb,GAAG\"}") -============================= test.tsx_foo_component_htdrsvublie.js (ENTRY POINT)== +============================= test.tsx_Foo_component_HTDRsvUbLiE.js (ENTRY POINT)== import { _jsxQ } from "@builder.io/qwik"; import { hW } from "./test"; @@ -67,7 +67,7 @@ export const Foo_component_HTDRsvUbLiE = ()=>{ const qwik = hW + handleWatch; console.log(qwik); return /*#__PURE__*/ _jsxQ("div", null, { - onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_div_onclick_m48dyiidsjw"), "Foo_component_div_onClick_M48DYiidSJw") + onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_div_onClick_M48DYiidSJw"), "Foo_component_div_onClick_M48DYiidSJw") }, null, 3, "u6_0"); }; @@ -80,7 +80,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component", "hash": "HTDRsvUbLiE", - "canonicalFilename": "test.tsx_foo_component_htdrsvublie", + "canonicalFilename": "test.tsx_Foo_component_HTDRsvUbLiE", "path": "", "extension": "js", "parent": null, @@ -93,7 +93,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_root_component_usestyles_u5dkuxgrgnu.js (ENTRY POINT)== +============================= test.tsx_Root_component_useStyles_u5DkUxGrGnU.js (ENTRY POINT)== export const Root_component_useStyles_u5DkUxGrGnU = 'thing'; export { _hW } from "@builder.io/qwik"; @@ -107,7 +107,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Root_component_useStyles", "hash": "u5DkUxGrGnU", - "canonicalFilename": "test.tsx_root_component_usestyles_u5dkuxgrgnu", + "canonicalFilename": "test.tsx_Root_component_useStyles_u5DkUxGrGnU", "path": "", "extension": "js", "parent": "Root_component_royhjYaCbYE", @@ -120,13 +120,13 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_root_component_royhjyacbye.js (ENTRY POINT)== +============================= test.tsx_Root_component_royhjYaCbYE.js (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; import { useStyles } from "@builder.io/qwik"; export const Root_component_royhjYaCbYE = ()=>{ - useStyles(/*#__PURE__*/ qrl(()=>import("./test.tsx_root_component_usestyles_u5dkuxgrgnu"), "Root_component_useStyles_u5DkUxGrGnU")); - return /*#__PURE__*/ qrl(()=>import("./test.tsx_root_component_1_cbpqnyduhi4"), "Root_component_1_cBpQNYDUHI4"); + useStyles(/*#__PURE__*/ qrl(()=>import("./test.tsx_Root_component_useStyles_u5DkUxGrGnU"), "Root_component_useStyles_u5DkUxGrGnU")); + return /*#__PURE__*/ qrl(()=>import("./test.tsx_Root_component_1_cBpQNYDUHI4"), "Root_component_1_cBpQNYDUHI4"); }; @@ -138,7 +138,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Root_component", "hash": "royhjYaCbYE", - "canonicalFilename": "test.tsx_root_component_royhjyacbye", + "canonicalFilename": "test.tsx_Root_component_royhjYaCbYE", "path": "", "extension": "js", "parent": null, @@ -151,7 +151,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_root_component_1_cbpqnyduhi4.js (ENTRY POINT)== +============================= test.tsx_Root_component_1_cBpQNYDUHI4.js (ENTRY POINT)== import { _jsxQ } from "@builder.io/qwik"; export const Root_component_1_cBpQNYDUHI4 = ()=>{ @@ -168,7 +168,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Root_component_1", "hash": "cBpQNYDUHI4", - "canonicalFilename": "test.tsx_root_component_1_cbpqnyduhi4", + "canonicalFilename": "test.tsx_Root_component_1_cBpQNYDUHI4", "path": "", "extension": "js", "parent": "Root_component_royhjYaCbYE", @@ -181,7 +181,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_div_onclick_m48dyiidsjw.js (ENTRY POINT)== +============================= test.tsx_Foo_component_div_onClick_M48DYiidSJw.js (ENTRY POINT)== export const Foo_component_div_onClick_M48DYiidSJw = ()=>console.log(23); @@ -194,7 +194,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_div_onClick", "hash": "M48DYiidSJw", - "canonicalFilename": "test.tsx_foo_component_div_onclick_m48dyiidsjw", + "canonicalFilename": "test.tsx_Foo_component_div_onClick_M48DYiidSJw", "path": "", "extension": "js", "parent": "Foo_component_HTDRsvUbLiE", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_qwik_react.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_qwik_react.snap index 755199abfd6..c7e02cf85b5 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_qwik_react.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_qwik_react.snap @@ -97,7 +97,7 @@ async function renderToString(rootNode, opts) { export { qwikify$, qwikifyQrl, renderToString }; -============================= ../node_modules/@builder.io/qwik-react/index.qwik.mjs_qwikifyqrl_component_usewatch_x04jc5xep1u.mjs (ENTRY POINT)== +============================= ../node_modules/@builder.io/qwik-react/index.qwik.mjs_qwikifyQrl_component_useWatch_x04JC5xeP1U.mjs (ENTRY POINT)== import { _auto_filterProps as filterProps } from "./index.qwik.mjs"; import { isBrowser } from "@builder.io/qwik/build"; @@ -138,7 +138,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-rea "entry": null, "displayName": "index.qwik.mjs_qwikifyQrl_component_useWatch", "hash": "x04JC5xeP1U", - "canonicalFilename": "index.qwik.mjs_qwikifyqrl_component_usewatch_x04jc5xep1u", + "canonicalFilename": "index.qwik.mjs_qwikifyQrl_component_useWatch_x04JC5xeP1U", "path": "../node_modules/@builder.io/qwik-react", "extension": "mjs", "parent": "qwikifyQrl_component_zH94hIe0Ick", @@ -151,7 +151,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-rea ] } */ -============================= ../node_modules/@builder.io/qwik-react/index.qwik.mjs_qwikifyqrl_component_zh94hie0ick.mjs (ENTRY POINT)== +============================= ../node_modules/@builder.io/qwik-react/index.qwik.mjs_qwikifyQrl_component_zH94hIe0Ick.mjs (ENTRY POINT)== import { Fragment } from "@builder.io/qwik/jsx-runtime"; import { SkipRerender } from "@builder.io/qwik"; @@ -172,7 +172,7 @@ export const qwikifyQrl_component_zH94hIe0Ick = (props)=>{ let run; if (props['client:visible']) run = 'visible'; else if (props['client:load'] || props['client:only']) run = 'load'; - useTaskQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_qwikifyqrl_component_usewatch_x04jc5xep1u.mjs"), "qwikifyQrl_component_useWatch_x04JC5xeP1U", [ + useTaskQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_qwikifyQrl_component_useWatch_x04JC5xeP1U.mjs"), "qwikifyQrl_component_useWatch_x04JC5xeP1U", [ hostElement, props, reactCmpQrl, @@ -211,7 +211,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-rea "entry": null, "displayName": "index.qwik.mjs_qwikifyQrl_component", "hash": "zH94hIe0Ick", - "canonicalFilename": "index.qwik.mjs_qwikifyqrl_component_zh94hie0ick", + "canonicalFilename": "index.qwik.mjs_qwikifyQrl_component_zH94hIe0Ick", "path": "../node_modules/@builder.io/qwik-react", "extension": "mjs", "parent": null, @@ -229,7 +229,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-rea import { qrl } from "@builder.io/qwik"; import { componentQrl, implicit$FirstArg } from '@builder.io/qwik'; function qwikifyQrl(reactCmpQrl) { - return /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_qwikifyqrl_component_zh94hie0ick.mjs"), "qwikifyQrl_component_zH94hIe0Ick", [ + return /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_qwikifyQrl_component_zH94hIe0Ick.mjs"), "qwikifyQrl_component_zH94hIe0Ick", [ reactCmpQrl ]), { tagName: 'qwik-wrap' diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_qwik_sdk_inline.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_qwik_sdk_inline.snap index 4a15b6d3755..614addbed65 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_qwik_sdk_inline.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_qwik_sdk_inline.snap @@ -1079,7 +1079,7 @@ export { zodQrl, }; -============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_routeroutlet_component_useondocument_event_knne9el0qfc.mjs (ENTRY POINT)== +============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_RouterOutlet_component_useOnDocument_event_KnNE9eL0qfc.mjs (ENTRY POINT)== export const RouterOutlet_component_useOnDocument_event_KnNE9eL0qfc = ()=>{ const POPSTATE_FALLBACK_INITIALIZED = '_qCityPopstateFallback'; @@ -1103,7 +1103,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit "entry": null, "displayName": "index.qwik.mjs_RouterOutlet_component_useOnDocument_event", "hash": "KnNE9eL0qfc", - "canonicalFilename": "index.qwik.mjs_routeroutlet_component_useondocument_event_knne9el0qfc", + "canonicalFilename": "index.qwik.mjs_RouterOutlet_component_useOnDocument_event_KnNE9eL0qfc", "path": "../node_modules/@builder.io/qwik-city", "extension": "mjs", "parent": "RouterOutlet_component_AKetNByE5TM", @@ -1116,7 +1116,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit ] } */ -============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_routeroutlet_component_aketnbye5tm.mjs == +============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_RouterOutlet_component_AKetNByE5TM.mjs == import { _auto_ContentInternalContext as ContentInternalContext } from "./index.qwik.mjs"; import { SkipRender } from "@builder.io/qwik"; @@ -1128,7 +1128,7 @@ import { useContext } from "@builder.io/qwik"; import { useOnDocument } from "@builder.io/qwik"; export const RouterOutlet_component_AKetNByE5TM = ()=>{ _jsxBranch(); - useOnDocument('qinit', eventQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_routeroutlet_component_useondocument_event_knne9el0qfc.mjs"), "RouterOutlet_component_useOnDocument_event_KnNE9eL0qfc"))); + useOnDocument('qinit', eventQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_RouterOutlet_component_useOnDocument_event_KnNE9eL0qfc.mjs"), "RouterOutlet_component_useOnDocument_event_KnNE9eL0qfc"))); const context = useContext(ContentInternalContext); if (context.value && context.value.length > 0) { const contentsLen = context.value.length; @@ -1150,7 +1150,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit "entry": "../node_modules/@builder.io/qwik-city/index.qwik.mjs_entry_RouterOutlet", "displayName": "index.qwik.mjs_RouterOutlet_component", "hash": "AKetNByE5TM", - "canonicalFilename": "index.qwik.mjs_routeroutlet_component_aketnbye5tm", + "canonicalFilename": "index.qwik.mjs_RouterOutlet_component_AKetNByE5TM", "path": "../node_modules/@builder.io/qwik-city", "extension": "mjs", "parent": null, @@ -1163,7 +1163,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit ] } */ -============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_qwikcityprovider_component_usestyles_rpdjaz33wla.mjs == +============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_QwikCityProvider_component_useStyles_RPDJAz33WLA.mjs == export const QwikCityProvider_component_useStyles_RPDJAz33WLA = `:root{view-transition-name: none}`; @@ -1176,7 +1176,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit "entry": "../node_modules/@builder.io/qwik-city/index.qwik.mjs_entry_QwikCityProvider", "displayName": "index.qwik.mjs_QwikCityProvider_component_useStyles", "hash": "RPDJAz33WLA", - "canonicalFilename": "index.qwik.mjs_qwikcityprovider_component_usestyles_rpdjaz33wla", + "canonicalFilename": "index.qwik.mjs_QwikCityProvider_component_useStyles_RPDJAz33WLA", "path": "../node_modules/@builder.io/qwik-city", "extension": "mjs", "parent": "QwikCityProvider_component_TxCFOy819ag", @@ -1189,7 +1189,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit ] } */ -============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_qwikcityprovider_component_goto_event_cbcjroynrvg.mjs == +============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_QwikCityProvider_component_goto_event_cBcjROynRVg.mjs == import { _getContextElement } from "@builder.io/qwik"; import { isBrowser } from "@builder.io/qwik/build"; @@ -1225,7 +1225,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit "entry": "../node_modules/@builder.io/qwik-city/index.qwik.mjs_entry_QwikCityProvider", "displayName": "index.qwik.mjs_QwikCityProvider_component_goto_event", "hash": "cBcjROynRVg", - "canonicalFilename": "index.qwik.mjs_qwikcityprovider_component_goto_event_cbcjroynrvg", + "canonicalFilename": "index.qwik.mjs_QwikCityProvider_component_goto_event_cBcjROynRVg", "path": "../node_modules/@builder.io/qwik-city", "extension": "mjs", "parent": "QwikCityProvider_component_TxCFOy819ag", @@ -1238,7 +1238,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit ] } */ -============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_qwikcityprovider_component_usetask_02wmimzeabk.mjs == +============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_QwikCityProvider_component_useTask_02wMImzEAbk.mjs == import { _auto_CLIENT_DATA_CACHE as CLIENT_DATA_CACHE } from "./index.qwik.mjs"; import { _getContextElement } from "@builder.io/qwik"; @@ -1332,7 +1332,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit "entry": "../node_modules/@builder.io/qwik-city/index.qwik.mjs_entry_QwikCityProvider", "displayName": "index.qwik.mjs_QwikCityProvider_component_useTask", "hash": "02wMImzEAbk", - "canonicalFilename": "index.qwik.mjs_qwikcityprovider_component_usetask_02wmimzeabk", + "canonicalFilename": "index.qwik.mjs_QwikCityProvider_component_useTask_02wMImzEAbk", "path": "../node_modules/@builder.io/qwik-city", "extension": "mjs", "parent": "QwikCityProvider_component_TxCFOy819ag", @@ -1345,7 +1345,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit ] } */ -============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_qwikcityprovider_component_txcfoy819ag.mjs == +============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_QwikCityProvider_component_TxCFOy819ag.mjs == import { _auto_ContentContext as ContentContext } from "./index.qwik.mjs"; import { _auto_ContentInternalContext as ContentInternalContext } from "./index.qwik.mjs"; @@ -1369,7 +1369,7 @@ import { useStore } from "@builder.io/qwik"; import { useStylesQrl } from "@builder.io/qwik"; import { useTaskQrl } from "@builder.io/qwik"; export const QwikCityProvider_component_TxCFOy819ag = (props)=>{ - useStylesQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_qwikcityprovider_component_usestyles_rpdjaz33wla.mjs"), "QwikCityProvider_component_useStyles_RPDJAz33WLA")); + useStylesQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_QwikCityProvider_component_useStyles_RPDJAz33WLA.mjs"), "QwikCityProvider_component_useStyles_RPDJAz33WLA")); const env = useQwikCityEnv(); if (!env?.params) throw new Error(`Missing Qwik City Env Data`); const urlEnv = useServerData('url'); @@ -1402,7 +1402,7 @@ export const QwikCityProvider_component_TxCFOy819ag = (props)=>{ status: env.response.status } } : void 0); - const goto = eventQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_qwikcityprovider_component_goto_event_cbcjroynrvg.mjs"), "QwikCityProvider_component_goto_event_cBcjROynRVg", [ + const goto = eventQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_QwikCityProvider_component_goto_event_cBcjROynRVg.mjs"), "QwikCityProvider_component_goto_event_cBcjROynRVg", [ actionState, navPath, routeLocation @@ -1414,7 +1414,7 @@ export const QwikCityProvider_component_TxCFOy819ag = (props)=>{ useContextProvider(RouteNavigateContext, goto); useContextProvider(RouteStateContext, loaderState); useContextProvider(RouteActionContext, actionState); - useTaskQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_qwikcityprovider_component_usetask_02wmimzeabk.mjs"), "QwikCityProvider_component_useTask_02wMImzEAbk", [ + useTaskQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_QwikCityProvider_component_useTask_02wMImzEAbk.mjs"), "QwikCityProvider_component_useTask_02wMImzEAbk", [ actionState, content, contentInternal, @@ -1438,7 +1438,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit "entry": "../node_modules/@builder.io/qwik-city/index.qwik.mjs_entry_QwikCityProvider", "displayName": "index.qwik.mjs_QwikCityProvider_component", "hash": "TxCFOy819ag", - "canonicalFilename": "index.qwik.mjs_qwikcityprovider_component_txcfoy819ag", + "canonicalFilename": "index.qwik.mjs_QwikCityProvider_component_TxCFOy819ag", "path": "../node_modules/@builder.io/qwik-city", "extension": "mjs", "parent": null, @@ -1451,7 +1451,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit ] } */ -============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_qwikcitymockprovider_component_goto_bubtvtyvvre.mjs == +============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_QwikCityMockProvider_component_goto_BUbtvTyvVRE.mjs == export const QwikCityMockProvider_component_goto_BUbtvTyvVRE = async (path)=>{ throw new Error('Not implemented'); @@ -1466,7 +1466,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit "entry": "../node_modules/@builder.io/qwik-city/index.qwik.mjs_entry_QwikCityMockProvider", "displayName": "index.qwik.mjs_QwikCityMockProvider_component_goto", "hash": "BUbtvTyvVRE", - "canonicalFilename": "index.qwik.mjs_qwikcitymockprovider_component_goto_bubtvtyvvre", + "canonicalFilename": "index.qwik.mjs_QwikCityMockProvider_component_goto_BUbtvTyvVRE", "path": "../node_modules/@builder.io/qwik-city", "extension": "mjs", "parent": "QwikCityMockProvider_component_WmYC5H00wtI", @@ -1479,7 +1479,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit ] } */ -============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_qwikcitymockprovider_component_wmyc5h00wti.mjs == +============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_QwikCityMockProvider_component_WmYC5H00wtI.mjs == import { _auto_ContentContext as ContentContext } from "./index.qwik.mjs"; import { _auto_ContentInternalContext as ContentInternalContext } from "./index.qwik.mjs"; @@ -1505,7 +1505,7 @@ export const QwikCityMockProvider_component_WmYC5H00wtI = (props)=>{ deep: false }); const loaderState = useSignal({}); - const goto = /*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_qwikcitymockprovider_component_goto_bubtvtyvvre.mjs"), "QwikCityMockProvider_component_goto_BUbtvTyvVRE"); + const goto = /*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_QwikCityMockProvider_component_goto_BUbtvTyvVRE.mjs"), "QwikCityMockProvider_component_goto_BUbtvTyvVRE"); const documentHead = useStore(createDocumentHead, { deep: false }); @@ -1534,7 +1534,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit "entry": "../node_modules/@builder.io/qwik-city/index.qwik.mjs_entry_QwikCityMockProvider", "displayName": "index.qwik.mjs_QwikCityMockProvider_component", "hash": "WmYC5H00wtI", - "canonicalFilename": "index.qwik.mjs_qwikcitymockprovider_component_wmyc5h00wti", + "canonicalFilename": "index.qwik.mjs_QwikCityMockProvider_component_WmYC5H00wtI", "path": "../node_modules/@builder.io/qwik-city", "extension": "mjs", "parent": null, @@ -1547,7 +1547,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit ] } */ -============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_link_component_event_event_5g4b0gd1wck.mjs (ENTRY POINT)== +============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_Link_component_event_event_5g4B0Gd1Wck.mjs (ENTRY POINT)== import { _auto_prefetchLinkResources as prefetchLinkResources } from "./index.qwik.mjs"; export const Link_component_event_event_5g4B0Gd1Wck = (ev, elm)=>prefetchLinkResources(elm, ev.type === 'qvisible'); @@ -1561,7 +1561,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit "entry": null, "displayName": "index.qwik.mjs_Link_component_event_event", "hash": "5g4B0Gd1Wck", - "canonicalFilename": "index.qwik.mjs_link_component_event_event_5g4b0gd1wck", + "canonicalFilename": "index.qwik.mjs_Link_component_event_event_5g4B0Gd1Wck", "path": "../node_modules/@builder.io/qwik-city", "extension": "mjs", "parent": "Link_component_8gdLBszqbaM", @@ -1574,7 +1574,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit ] } */ -============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_link_component_a_onclick_kzjavhdi3l0.mjs == +============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_Link_component_a_onClick_kzjavhDI3L0.mjs == import { useLexicalScope } from "@builder.io/qwik"; export const Link_component_a_onClick_kzjavhDI3L0 = (_, elm)=>{ @@ -1591,7 +1591,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit "entry": "../node_modules/@builder.io/qwik-city/index.qwik.mjs_entry_Link", "displayName": "index.qwik.mjs_Link_component_a_onClick", "hash": "kzjavhDI3L0", - "canonicalFilename": "index.qwik.mjs_link_component_a_onclick_kzjavhdi3l0", + "canonicalFilename": "index.qwik.mjs_Link_component_a_onClick_kzjavhDI3L0", "path": "../node_modules/@builder.io/qwik-city", "extension": "mjs", "parent": "Link_component_8gdLBszqbaM", @@ -1604,7 +1604,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit ] } */ -============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_link_component_8gdlbszqbam.mjs == +============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_Link_component_8gdLBszqbaM.mjs == import { Slot } from "@builder.io/qwik"; import { _jsxC } from "@builder.io/qwik"; @@ -1627,12 +1627,12 @@ export const Link_component_8gdLBszqbaM = (props)=>{ const reload = !!linkProps.reload; linkProps['preventdefault:click'] = !!clientNavPath; linkProps.href = clientNavPath || props.href; - const event = eventQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_link_component_event_event_5g4b0gd1wck.mjs"), "Link_component_event_event_5g4B0Gd1Wck")); + const event = eventQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_Link_component_event_event_5g4B0Gd1Wck.mjs"), "Link_component_event_event_5g4B0Gd1Wck")); return /* @__PURE__ */ _jsxS('a', { ...linkProps, 'data-prefetch': prefetchDataset, children: /* @__PURE__ */ _jsxC(Slot, null, 3, 'AD_0'), - onClick$: /*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_link_component_a_onclick_kzjavhdi3l0.mjs"), "Link_component_a_onClick_kzjavhDI3L0", [ + onClick$: /*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_Link_component_a_onClick_kzjavhDI3L0.mjs"), "Link_component_a_onClick_kzjavhDI3L0", [ nav, reload ]), @@ -1651,7 +1651,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit "entry": "../node_modules/@builder.io/qwik-city/index.qwik.mjs_entry_Link", "displayName": "index.qwik.mjs_Link_component", "hash": "8gdLBszqbaM", - "canonicalFilename": "index.qwik.mjs_link_component_8gdlbszqbam", + "canonicalFilename": "index.qwik.mjs_Link_component_8gdLBszqbaM", "path": "../node_modules/@builder.io/qwik-city", "extension": "mjs", "parent": null, @@ -1664,7 +1664,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit ] } */ -============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_routeactionqrl_action_submit_a5bzc7wo00a.mjs == +============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_routeActionQrl_action_submit_A5bZC7WO00A.mjs == import { isServer } from "@builder.io/qwik/build"; import { noSerialize } from "@builder.io/qwik"; @@ -1724,7 +1724,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit "entry": "../node_modules/@builder.io/qwik-city/index.qwik.mjs_entry_routeActionQrl", "displayName": "index.qwik.mjs_routeActionQrl_action_submit", "hash": "A5bZC7WO00A", - "canonicalFilename": "index.qwik.mjs_routeactionqrl_action_submit_a5bzc7wo00a", + "canonicalFilename": "index.qwik.mjs_routeActionQrl_action_submit_A5bZC7WO00A", "path": "../node_modules/@builder.io/qwik-city", "extension": "mjs", "parent": null, @@ -1737,7 +1737,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit ] } */ -============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_serverqrl_stuff_woipfiq04l4.mjs == +============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_serverQrl_stuff_wOIPfiQ04l4.mjs == import { _deserializeData } from "@builder.io/qwik"; import { _getContextElement } from "@builder.io/qwik"; @@ -1797,7 +1797,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit "entry": "../node_modules/@builder.io/qwik-city/index.qwik.mjs_entry_serverQrl", "displayName": "index.qwik.mjs_serverQrl_stuff", "hash": "wOIPfiQ04l4", - "canonicalFilename": "index.qwik.mjs_serverqrl_stuff_woipfiq04l4", + "canonicalFilename": "index.qwik.mjs_serverQrl_stuff_wOIPfiQ04l4", "path": "../node_modules/@builder.io/qwik-city", "extension": "mjs", "parent": null, @@ -1810,7 +1810,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit ] } */ -============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_getform_component_form_onsubmit_p9msze0ojs4.mjs == +============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_GetForm_component_form_onSubmit_p9MSze0ojs4.mjs == import { useLexicalScope } from "@builder.io/qwik"; export const GetForm_component_form_onSubmit_p9MSze0ojs4 = async (_, form)=>{ @@ -1842,7 +1842,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit "entry": "../node_modules/@builder.io/qwik-city/index.qwik.mjs_entry_GetForm", "displayName": "index.qwik.mjs_GetForm_component_form_onSubmit", "hash": "p9MSze0ojs4", - "canonicalFilename": "index.qwik.mjs_getform_component_form_onsubmit_p9msze0ojs4", + "canonicalFilename": "index.qwik.mjs_GetForm_component_form_onSubmit_p9MSze0ojs4", "path": "../node_modules/@builder.io/qwik-city", "extension": "mjs", "parent": "GetForm_component_Nk9PlpjQm9Y", @@ -1855,7 +1855,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit ] } */ -============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_getform_component_nk9plpjqm9y.mjs == +============================= ../node_modules/@builder.io/qwik-city/index.qwik.mjs_GetForm_component_Nk9PlpjQm9Y.mjs == import { Slot } from "@builder.io/qwik"; import { _fnSignal } from "@builder.io/qwik"; @@ -1875,7 +1875,7 @@ export const GetForm_component_Nk9PlpjQm9Y = (props)=>{ return /* @__PURE__ */ _jsxS('form', { ...rest, children: /* @__PURE__ */ _jsxC(Slot, null, 3, 'BC_0'), - onSubmit$: /*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_getform_component_form_onsubmit_p9msze0ojs4.mjs"), "GetForm_component_form_onSubmit_p9MSze0ojs4", [ + onSubmit$: /*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_GetForm_component_form_onSubmit_p9MSze0ojs4.mjs"), "GetForm_component_form_onSubmit_p9MSze0ojs4", [ nav ]) }, { @@ -1898,7 +1898,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/node_modules/@builder.io/qwik-cit "entry": "../node_modules/@builder.io/qwik-city/index.qwik.mjs_entry_GetForm", "displayName": "index.qwik.mjs_GetForm_component", "hash": "Nk9PlpjQm9Y", - "canonicalFilename": "index.qwik.mjs_getform_component_nk9plpjqm9y", + "canonicalFilename": "index.qwik.mjs_GetForm_component_Nk9PlpjQm9Y", "path": "../node_modules/@builder.io/qwik-city", "extension": "mjs", "parent": null, @@ -1926,7 +1926,7 @@ const DocumentHeadContext = /* @__PURE__ */ createContextId('qc-h'); const RouteLocationContext = /* @__PURE__ */ createContextId('qc-l'); const RouteNavigateContext = /* @__PURE__ */ createContextId('qc-n'); const RouteActionContext = /* @__PURE__ */ createContextId('qc-a'); -const RouterOutlet = /* @__PURE__ */ componentQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_routeroutlet_component_aketnbye5tm.mjs"), "RouterOutlet_component_AKetNByE5TM")); +const RouterOutlet = /* @__PURE__ */ componentQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_RouterOutlet_component_AKetNByE5TM.mjs"), "RouterOutlet_component_AKetNByE5TM")); const MODULE_CACHE = /* @__PURE__ */ new WeakMap(); const CLIENT_DATA_CACHE = /* @__PURE__ */ new Map(); const QACTION_KEY = 'qaction'; @@ -2193,9 +2193,9 @@ const useLocation = ()=>useContext(RouteLocationContext); const useNavigate = ()=>useContext(RouteNavigateContext); const useAction = ()=>useContext(RouteActionContext); const useQwikCityEnv = ()=>noSerialize(useServerData('qwikcity')); -const QwikCityProvider = /* @__PURE__ */ componentQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_qwikcityprovider_component_txcfoy819ag.mjs"), "QwikCityProvider_component_TxCFOy819ag")); -const QwikCityMockProvider = /* @__PURE__ */ componentQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_qwikcitymockprovider_component_wmyc5h00wti.mjs"), "QwikCityMockProvider_component_WmYC5H00wtI")); -const Link = /* @__PURE__ */ componentQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_link_component_8gdlbszqbam.mjs"), "Link_component_8gdLBszqbaM")); +const QwikCityProvider = /* @__PURE__ */ componentQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_QwikCityProvider_component_TxCFOy819ag.mjs"), "QwikCityProvider_component_TxCFOy819ag")); +const QwikCityMockProvider = /* @__PURE__ */ componentQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_QwikCityMockProvider_component_WmYC5H00wtI.mjs"), "QwikCityMockProvider_component_WmYC5H00wtI")); +const Link = /* @__PURE__ */ componentQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_Link_component_8gdLBszqbaM.mjs"), "Link_component_8gdLBszqbaM")); const prefetchLinkResources = (elm, isOnVisible)=>{ if (elm && elm.href && elm.hasAttribute('data-prefetch')) { if (!windowInnerWidth) windowInnerWidth = innerWidth; @@ -2233,7 +2233,7 @@ const routeActionQrl = (actionQrl, ...rest)=>{ } return initialState; }); - const submit = /*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_routeactionqrl_action_submit_a5bzc7wo00a.mjs"), "routeActionQrl_action_submit_A5bZC7WO00A", [ + const submit = /*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_routeActionQrl_action_submit_A5bZC7WO00A.mjs"), "routeActionQrl_action_submit_A5bZC7WO00A", [ currentAction, id, loc, @@ -2316,7 +2316,7 @@ const serverQrl = (qrl1)=>{ if (captured && captured.length > 0 && !_getContextElement()) throw new Error('For security reasons, we cannot serialize QRLs that capture lexical scope.'); } function stuff() { - return /*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_serverqrl_stuff_woipfiq04l4.mjs"), "serverQrl_stuff_wOIPfiQ04l4", [ + return /*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_serverQrl_stuff_wOIPfiQ04l4.mjs"), "serverQrl_stuff_wOIPfiQ04l4", [ qrl1 ]); } @@ -2416,7 +2416,7 @@ const Form = ({ action, spaReset, reloadDocument, onSubmit$, ...rest }, key)=>{ ...rest }, 0, key); }; -const GetForm = /* @__PURE__ */ componentQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_getform_component_nk9plpjqm9y.mjs"), "GetForm_component_Nk9PlpjQm9Y")); +const GetForm = /* @__PURE__ */ componentQrl(/*#__PURE__*/ qrl(()=>import("./index.qwik.mjs_GetForm_component_Nk9PlpjQm9Y.mjs"), "GetForm_component_Nk9PlpjQm9Y")); export { Form, Link, QwikCityMockProvider, QwikCityProvider, RouterOutlet, ServiceWorkerRegister, globalAction$, globalActionQrl, routeAction$, routeActionQrl, routeLoader$, routeLoaderQrl, server$, serverQrl, useContent, useDocumentHead, useLocation, useNavigate, validator$, validatorQrl, z2 as z, zod$, zodQrl }; export { CLIENT_DATA_CACHE as _auto_CLIENT_DATA_CACHE }; export { ContentContext as _auto_ContentContext }; diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_renamed_exports.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_renamed_exports.snap index f4f1d0093fc..d282a57f8ea 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_renamed_exports.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_renamed_exports.snap @@ -20,11 +20,11 @@ export const App = Component((props) => { import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_nuxfthrjvxe"), "App_Component_NuXFTHRjvXE")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_Component_NuXFTHRjvXE"), "App_Component_NuXFTHRjvXE")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,oBAAM,iHAMhB\"}") -============================= test.tsx_app_component_1_a08txhb9pek.js (ENTRY POINT)== +============================= test.tsx_App_Component_1_A08tXHb9pEk.js (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; import { _fnSignal } from "@builder.io/qwik"; @@ -46,7 +46,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_Component_1", "hash": "A08tXHb9pEk", - "canonicalFilename": "test.tsx_app_component_1_a08txhb9pek", + "canonicalFilename": "test.tsx_App_Component_1_A08tXHb9pEk", "path": "", "extension": "js", "parent": "App_Component_NuXFTHRjvXE", @@ -59,7 +59,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_nuxfthrjvxe.js (ENTRY POINT)== +============================= test.tsx_App_Component_NuXFTHRjvXE.js (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; import { useStore } from "@builder.io/qwik"; @@ -67,7 +67,7 @@ export const App_Component_NuXFTHRjvXE = (props)=>{ const state = useStore({ thing: 0 }); - return /*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_1_a08txhb9pek"), "App_Component_1_A08tXHb9pEk", [ + return /*#__PURE__*/ qrl(()=>import("./test.tsx_App_Component_1_A08tXHb9pEk"), "App_Component_1_A08tXHb9pEk", [ state ]); }; @@ -81,7 +81,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_Component", "hash": "NuXFTHRjvXE", - "canonicalFilename": "test.tsx_app_component_nuxfthrjvxe", + "canonicalFilename": "test.tsx_App_Component_NuXFTHRjvXE", "path": "", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_server_auth.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_server_auth.snap index dd5b64070a7..1bb24bf4851 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_server_auth.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_server_auth.snap @@ -50,12 +50,12 @@ export const { onRequest, logout, getSession, signup } = auth$({ import { serverAuthQrl } from "@auth/qwik"; import { qrl } from "@builder.io/qwik"; import { authQrl } from "@auth/qwik"; -export const { onRequest, logout, getSession, signup } = serverAuthQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_serverauth_qvqpx2a0p9y"), "serverAuth_qVqpX2a0p9Y")); -export const { onRequest, logout, getSession, signup } = authQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_auth_gu0ay5qcety"), "auth_GU0aY5QCETY")); +export const { onRequest, logout, getSession, signup } = serverAuthQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_serverAuth_qVqpX2a0p9Y"), "serverAuth_qVqpX2a0p9Y")); +export const { onRequest, logout, getSession, signup } = authQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_auth_GU0aY5QCETY"), "auth_GU0aY5QCETY")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;;AAMA,OAAO,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,4GAetD;AAEH,OAAO,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,0FAetD\"}") -============================= test.tsx_auth_gu0ay5qcety.js (ENTRY POINT)== +============================= test.tsx_auth_GU0aY5QCETY.js (ENTRY POINT)== import Facebook from "next-auth/providers/facebook"; import GitHub from "@auth/core/providers/github"; @@ -86,7 +86,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_auth", "hash": "GU0aY5QCETY", - "canonicalFilename": "test.tsx_auth_gu0ay5qcety", + "canonicalFilename": "test.tsx_auth_GU0aY5QCETY", "path": "", "extension": "js", "parent": null, @@ -99,7 +99,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_serverauth_qvqpx2a0p9y.js (ENTRY POINT)== +============================= test.tsx_serverAuth_qVqpX2a0p9Y.js (ENTRY POINT)== import Facebook from "next-auth/providers/facebook"; import GitHub from "@auth/core/providers/github"; @@ -130,7 +130,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_serverAuth", "hash": "qVqpX2a0p9Y", - "canonicalFilename": "test.tsx_serverauth_qvqpx2a0p9y", + "canonicalFilename": "test.tsx_serverAuth_qVqpX2a0p9Y", "path": "", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_spread_jsx.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_spread_jsx.snap index fda0d1e051e..f278e0e06a1 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_spread_jsx.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_spread_jsx.snap @@ -44,11 +44,11 @@ import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; /** * The RouterHead component is placed inside of the document `` element. - */ export const RouterHead = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_routerhead_component_dpa76mgiou0"), "RouterHead_component_DPA76mgIou0")); + */ export const RouterHead = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_RouterHead_component_DPA76mgIou0"), "RouterHead_component_DPA76mgIou0")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAIA;;CAEC,GACD,OAAO,MAAM,2BAAa,+HAyBvB\"}") -============================= test.tsx_routerhead_component_dpa76mgiou0.js (ENTRY POINT)== +============================= test.tsx_RouterHead_component_DPA76mgIou0.js (ENTRY POINT)== import { Fragment as _Fragment } from "@builder.io/qwik/jsx-runtime"; import { createElement as _createElement } from "@builder.io/qwik"; @@ -104,7 +104,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_RouterHead_component", "hash": "DPA76mgIou0", - "canonicalFilename": "test.tsx_routerhead_component_dpa76mgiou0", + "canonicalFilename": "test.tsx_RouterHead_component_DPA76mgIou0", "path": "", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_strip_exports_unused.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_strip_exports_unused.snap index ea42e3d4201..ce5c05c7d5a 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_strip_exports_unused.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_strip_exports_unused.snap @@ -29,11 +29,11 @@ import { qrl } from "@builder.io/qwik"; export const onGet = ()=>{ throw "Symbol removed by Qwik Optimizer, it can not be called from current platform"; }; -export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_luxexe0dqrg"), "test_component_LUXeXe0DQrg")); +export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_LUXeXe0DQrg"), "test_component_LUXeXe0DQrg")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;aAIa;;;AASb,6BAAe,mHAEZ\"}") -============================= test.tsx_test_component_luxexe0dqrg.tsx (ENTRY POINT)== +============================= test.tsx_test_component_LUXeXe0DQrg.tsx (ENTRY POINT)== export const test_component_LUXeXe0DQrg = ()=>{ return
cmp
; @@ -48,7 +48,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_test_component", "hash": "LUXeXe0DQrg", - "canonicalFilename": "test.tsx_test_component_luxexe0dqrg", + "canonicalFilename": "test.tsx_test_component_LUXeXe0DQrg", "path": "", "extension": "tsx", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_strip_exports_used.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_strip_exports_used.snap index 0621f7861bc..4d3490bbabc 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_strip_exports_used.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_strip_exports_used.snap @@ -25,7 +25,7 @@ export default component$(()=> { return
cmp
}); -============================= test.tsx_test_component_useresource_4a8wvy7wh38.tsx (ENTRY POINT)== +============================= test.tsx_test_component_useResource_4a8wVY7wh38.tsx (ENTRY POINT)== import { onGet } from "./test"; export const test_component_useResource_4a8wVY7wh38 = ()=>{ @@ -41,7 +41,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_test_component_useResource", "hash": "4a8wVY7wh38", - "canonicalFilename": "test.tsx_test_component_useresource_4a8wvy7wh38", + "canonicalFilename": "test.tsx_test_component_useResource_4a8wVY7wh38", "path": "", "extension": "tsx", "parent": "test_component_LUXeXe0DQrg", @@ -61,16 +61,16 @@ import { qrl } from "@builder.io/qwik"; export const onGet = ()=>{ throw "Symbol removed by Qwik Optimizer, it can not be called from current platform"; }; -export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_luxexe0dqrg"), "test_component_LUXeXe0DQrg")); +export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_LUXeXe0DQrg"), "test_component_LUXeXe0DQrg")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;aAIa;;;AASb,6BAAe,mHAKZ\"}") -============================= test.tsx_test_component_luxexe0dqrg.tsx (ENTRY POINT)== +============================= test.tsx_test_component_LUXeXe0DQrg.tsx (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; import { useResourceQrl } from "@builder.io/qwik"; export const test_component_LUXeXe0DQrg = ()=>{ - useResourceQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_useresource_4a8wvy7wh38"), "test_component_useResource_4a8wVY7wh38")); + useResourceQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_useResource_4a8wVY7wh38"), "test_component_useResource_4a8wVY7wh38")); return
cmp
; }; @@ -83,7 +83,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_test_component", "hash": "LUXeXe0DQrg", - "canonicalFilename": "test.tsx_test_component_luxexe0dqrg", + "canonicalFilename": "test.tsx_test_component_LUXeXe0DQrg", "path": "", "extension": "tsx", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_strip_server_code.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_strip_server_code.snap index 86a45f5bf95..b83dc230a2f 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_strip_server_code.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_strip_server_code.snap @@ -48,7 +48,7 @@ export const Parent = component$(() => { ); }); -============================= test.tsx_parent_component_usetask_gdh1etuwqbu.js (ENTRY POINT)== +============================= test.tsx_Parent_component_useTask_gDH1EtUWqBU.js (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; import { isServer } from "@builder.io/qwik/build"; @@ -71,7 +71,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Parent_component_useTask", "hash": "gDH1EtUWqBU", - "canonicalFilename": "test.tsx_parent_component_usetask_gdh1etuwqbu", + "canonicalFilename": "test.tsx_Parent_component_useTask_gDH1EtUWqBU", "path": "", "extension": "js", "parent": "Parent_component_0TaiDayHrlo", @@ -88,11 +88,11 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Parent = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_parent_component_0taidayhrlo"), "Parent_component_0TaiDayHrlo")); +export const Parent = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Parent_component_0TaiDayHrlo"), "Parent_component_0TaiDayHrlo")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAOA,OAAO,MAAM,uBAAS,uHAkCnB\"}") -============================= test.tsx_parent_component_serverstuff_a_2ca3hldc7yc.js (ENTRY POINT)== +============================= test.tsx_Parent_component_serverStuff_a_2ca3HLDC7yc.js (ENTRY POINT)== export const Parent_component_serverStuff_a_2ca3HLDC7yc = ()=>{ // from $(), should not be removed @@ -108,7 +108,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Parent_component_serverStuff_a", "hash": "2ca3HLDC7yc", - "canonicalFilename": "test.tsx_parent_component_serverstuff_a_2ca3hldc7yc", + "canonicalFilename": "test.tsx_Parent_component_serverStuff_a_2ca3HLDC7yc", "path": "", "extension": "js", "parent": "Parent_component_serverStuff_r1qAHX7Opp0", @@ -121,7 +121,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_parent_component_serverstuff_b_client_v9qawr2inkk.js (ENTRY POINT)== +============================= test.tsx_Parent_component_serverStuff_b_client_v9qawr2Inkk.js (ENTRY POINT)== export const Parent_component_serverStuff_b_client_v9qawr2Inkk = ()=>{ // from clien$(), should not be removed @@ -136,7 +136,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Parent_component_serverStuff_b_client", "hash": "v9qawr2Inkk", - "canonicalFilename": "test.tsx_parent_component_serverstuff_b_client_v9qawr2inkk", + "canonicalFilename": "test.tsx_Parent_component_serverStuff_b_client_v9qawr2Inkk", "path": "", "extension": "js", "parent": "Parent_component_serverStuff_r1qAHX7Opp0", @@ -149,7 +149,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_parent_component_0taidayhrlo.js (ENTRY POINT)== +============================= test.tsx_Parent_component_0TaiDayHrlo.js (ENTRY POINT)== import { _fnSignal } from "@builder.io/qwik"; import { _jsxQ } from "@builder.io/qwik"; @@ -164,14 +164,14 @@ export const Parent_component_0TaiDayHrlo = ()=>{ text: '' }); // Double count watch - useTaskQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_parent_component_usetask_gdh1etuwqbu"), "Parent_component_useTask_gDH1EtUWqBU", [ + useTaskQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Parent_component_useTask_gDH1EtUWqBU"), "Parent_component_useTask_gDH1EtUWqBU", [ state ])); serverStuffQrl(/*#__PURE__*/ _noopQrl("Parent_component_serverStuff_r1qAHX7Opp0")); serverLoaderQrl(/*#__PURE__*/ _noopQrl("Parent_component_serverLoader_k1L0DiPQV1I")); - useTaskQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_parent_component_usetask_1_p8orqhhsurk"), "Parent_component_useTask_1_P8oRQhHsurk")); + useTaskQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Parent_component_useTask_1_P8oRQhHsurk"), "Parent_component_useTask_1_P8oRQhHsurk")); return /*#__PURE__*/ _jsxQ("div", null, { - onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_parent_component_div_onclick_c5xe49nqd3a"), "Parent_component_div_onClick_C5XE49Nqd3A") + onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_Parent_component_div_onClick_C5XE49Nqd3A"), "Parent_component_div_onClick_C5XE49Nqd3A") }, _fnSignal((p0)=>p0.text, [ state ], "p0.text"), 3, "u6_0"); @@ -186,7 +186,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Parent_component", "hash": "0TaiDayHrlo", - "canonicalFilename": "test.tsx_parent_component_0taidayhrlo", + "canonicalFilename": "test.tsx_Parent_component_0TaiDayHrlo", "path": "", "extension": "js", "parent": null, @@ -199,7 +199,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_parent_component_div_onclick_c5xe49nqd3a.js (ENTRY POINT)== +============================= test.tsx_Parent_component_div_onClick_C5XE49Nqd3A.js (ENTRY POINT)== export const Parent_component_div_onClick_C5XE49Nqd3A = ()=>console.log('parent'); @@ -212,7 +212,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Parent_component_div_onClick", "hash": "C5XE49Nqd3A", - "canonicalFilename": "test.tsx_parent_component_div_onclick_c5xe49nqd3a", + "canonicalFilename": "test.tsx_Parent_component_div_onClick_C5XE49Nqd3A", "path": "", "extension": "js", "parent": "Parent_component_0TaiDayHrlo", @@ -225,7 +225,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_parent_component_usetask_1_p8orqhhsurk.js (ENTRY POINT)== +============================= test.tsx_Parent_component_useTask_1_P8oRQhHsurk.js (ENTRY POINT)== export const Parent_component_useTask_1_P8oRQhHsurk = ()=>{ // Code @@ -241,7 +241,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Parent_component_useTask_1", "hash": "P8oRQhHsurk", - "canonicalFilename": "test.tsx_parent_component_usetask_1_p8orqhhsurk", + "canonicalFilename": "test.tsx_Parent_component_useTask_1_P8oRQhHsurk", "path": "", "extension": "js", "parent": "Parent_component_0TaiDayHrlo", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_transpile_jsx_only.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_transpile_jsx_only.snap index e7a15237fc7..1aa7490185d 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_transpile_jsx_only.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_transpile_jsx_only.snap @@ -16,7 +16,7 @@ export const App = component$((props) => { ); }); -============================= test.tsx_app_component_ckepmxzlub0.ts (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.ts (ENTRY POINT)== import { _jsxC } from "@builder.io/qwik"; import { _jsxQ } from "@builder.io/qwik"; @@ -25,7 +25,7 @@ export const App_component_ckEPmXZlub0 = (props)=>{ return /*#__PURE__*/ _jsxC(Cmp, { children: /*#__PURE__*/ _jsxQ("p", null, { class: "stuff", - onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_cmp_p_onclick_vuxzfutkpto.ts"), "App_component_Cmp_p_onClick_vuXzfUTkpto") + onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_Cmp_p_onClick_vuXzfUTkpto.ts"), "App_component_Cmp_p_onClick_vuXzfUTkpto") }, "Hello Qwik", 3, null) }, 3, "u6_0"); }; @@ -39,7 +39,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "ts", "parent": null, @@ -52,7 +52,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_app_component_cmp_p_onclick_vuxzfutkpto.ts (ENTRY POINT)== +============================= test.tsx_App_component_Cmp_p_onClick_vuXzfUTkpto.ts (ENTRY POINT)== export const App_component_Cmp_p_onClick_vuXzfUTkpto = ()=>console.log('warn'); @@ -65,7 +65,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component_Cmp_p_onClick", "hash": "vuXzfUTkpto", - "canonicalFilename": "test.tsx_app_component_cmp_p_onclick_vuxzfutkpto", + "canonicalFilename": "test.tsx_App_component_Cmp_p_onClick_vuXzfUTkpto", "path": "", "extension": "ts", "parent": "App_component_ckEPmXZlub0", @@ -82,7 +82,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0.ts"), "App_component_ckEPmXZlub0")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0.ts"), "App_component_ckEPmXZlub0")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,oBAAM,oHAMhB\"}") diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_ts_enums.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_ts_enums.snap index 80cf6901085..7494b9fb7cd 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_ts_enums.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_ts_enums.snap @@ -31,11 +31,11 @@ export let Thing; Thing[Thing["A"] = 0] = "A"; Thing[Thing["B"] = 1] = "B"; })(Thing || (Thing = {})); -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0"), "App_component_ckEPmXZlub0")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0"), "App_component_ckEPmXZlub0")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;;UAGY;;;GAAA,UAAA;AAKZ,OAAO,MAAM,oBAAM,iHAOhB\"}") -============================= test.tsx_app_component_ckepmxzlub0.js (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)== import { Fragment as _Fragment } from "@builder.io/qwik/jsx-runtime"; import { _jsxC } from "@builder.io/qwik"; @@ -58,7 +58,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_ts_enums_issue_1341.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_ts_enums_issue_1341.snap index 4a137dd7db8..731c24c3238 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_ts_enums_issue_1341.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_ts_enums_issue_1341.snap @@ -31,11 +31,11 @@ let Thing; Thing[Thing["A"] = 0] = "A"; Thing[Thing["B"] = 1] = "B"; })(Thing || (Thing = {})); -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0"), "App_component_ckEPmXZlub0")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0"), "App_component_ckEPmXZlub0")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;;UAGK;;;GAAA,UAAA;AAKL,OAAO,MAAM,oBAAM,iHAOhB\"}") -============================= test.tsx_app_component_ckepmxzlub0.js (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)== import { Fragment as _Fragment } from "@builder.io/qwik/jsx-runtime"; import { _jsxC } from "@builder.io/qwik"; @@ -58,7 +58,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_ts_enums_no_transpile.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_ts_enums_no_transpile.snap index 4287b706a59..b99ae924084 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_ts_enums_no_transpile.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_ts_enums_no_transpile.snap @@ -30,11 +30,11 @@ export enum Thing { A, B } -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0"), "App_component_ckEPmXZlub0")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0"), "App_component_ckEPmXZlub0")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,YAAY;IACR;IACA;;AAGJ,OAAO,MAAM,oBAAM,iHAOhB\"}") -============================= test.tsx_app_component_ckepmxzlub0.tsx (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.tsx (ENTRY POINT)== import { Thing } from "./test"; export const App_component_ckEPmXZlub0 = ()=>{ @@ -53,7 +53,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "tsx", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_use_client_effect.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_use_client_effect.snap index 151d9d061b9..cb894283af2 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_use_client_effect.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_use_client_effect.snap @@ -31,7 +31,7 @@ export const Child = component$(() => { }); -============================= test.tsx_child_component_usebrowservisibletask_0igfpoyjmqa.js (ENTRY POINT)== +============================= test.tsx_Child_component_useBrowserVisibleTask_0IGFPOyJmQA.js (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; export const Child_component_useBrowserVisibleTask_0IGFPOyJmQA = ()=>{ @@ -54,7 +54,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Child_component_useBrowserVisibleTask", "hash": "0IGFPOyJmQA", - "canonicalFilename": "test.tsx_child_component_usebrowservisibletask_0igfpoyjmqa", + "canonicalFilename": "test.tsx_Child_component_useBrowserVisibleTask_0IGFPOyJmQA", "path": "", "extension": "js", "parent": "Child_component_9GyF01GDKqw", @@ -71,11 +71,11 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Child = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_child_component_9gyf01gdkqw"), "Child_component_9GyF01GDKqw")); +export const Child = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Child_component_9GyF01GDKqw"), "Child_component_9GyF01GDKqw")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,sBAAQ,qHAoBlB\"}") -============================= test.tsx_child_component_9gyf01gdkqw.js (ENTRY POINT)== +============================= test.tsx_Child_component_9GyF01GDKqw.js (ENTRY POINT)== import { _fnSignal } from "@builder.io/qwik"; import { _jsxQ } from "@builder.io/qwik"; @@ -87,7 +87,7 @@ export const Child_component_9GyF01GDKqw = ()=>{ count: 0 }); // Double count watch - useBrowserVisibleTaskQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_child_component_usebrowservisibletask_0igfpoyjmqa"), "Child_component_useBrowserVisibleTask_0IGFPOyJmQA", [ + useBrowserVisibleTaskQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Child_component_useBrowserVisibleTask_0IGFPOyJmQA"), "Child_component_useBrowserVisibleTask_0IGFPOyJmQA", [ state ])); return /*#__PURE__*/ _jsxQ("div", null, null, _fnSignal((p0)=>p0.count, [ @@ -104,7 +104,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Child_component", "hash": "9GyF01GDKqw", - "canonicalFilename": "test.tsx_child_component_9gyf01gdkqw", + "canonicalFilename": "test.tsx_Child_component_9GyF01GDKqw", "path": "", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_use_server_mount.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_use_server_mount.snap index 13192379c96..4a35fcee7fd 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_use_server_mount.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_use_server_mount.snap @@ -45,7 +45,7 @@ export const Child = component$(() => { ); }); -============================= test.tsx_parent_component_usetask_gdh1etuwqbu.js == +============================= test.tsx_Parent_component_useTask_gDH1EtUWqBU.js == import { useLexicalScope } from "@builder.io/qwik"; import mongo from "mongodb"; @@ -66,7 +66,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": "test.tsx_entry_Parent", "displayName": "test.tsx_Parent_component_useTask", "hash": "gDH1EtUWqBU", - "canonicalFilename": "test.tsx_parent_component_usetask_gdh1etuwqbu", + "canonicalFilename": "test.tsx_Parent_component_useTask_gDH1EtUWqBU", "path": "", "extension": "js", "parent": "Parent_component_0TaiDayHrlo", @@ -83,12 +83,12 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Parent = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_parent_component_0taidayhrlo"), "Parent_component_0TaiDayHrlo")); -export const Child = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_child_component_9gyf01gdkqw"), "Child_component_9GyF01GDKqw")); +export const Parent = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Parent_component_0TaiDayHrlo"), "Parent_component_0TaiDayHrlo")); +export const Child = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Child_component_9GyF01GDKqw"), "Child_component_9GyF01GDKqw")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAKA,OAAO,MAAM,uBAAS,uHAgBnB;AAEH,OAAO,MAAM,sBAAQ,qHAelB\"}") -============================= test.tsx_child_component_usetask_oh4n7zeqjku.js == +============================= test.tsx_Child_component_useTask_Oh4n7ZeqJkU.js == import { useLexicalScope } from "@builder.io/qwik"; import mongo from "mongodb"; @@ -107,7 +107,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": "test.tsx_entry_Child", "displayName": "test.tsx_Child_component_useTask", "hash": "Oh4n7ZeqJkU", - "canonicalFilename": "test.tsx_child_component_usetask_oh4n7zeqjku", + "canonicalFilename": "test.tsx_Child_component_useTask_Oh4n7ZeqJkU", "path": "", "extension": "js", "parent": "Child_component_9GyF01GDKqw", @@ -120,7 +120,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_parent_component_0taidayhrlo.js == +============================= test.tsx_Parent_component_0TaiDayHrlo.js == import { _fnSignal } from "@builder.io/qwik"; import { _jsxQ } from "@builder.io/qwik"; @@ -132,11 +132,11 @@ export const Parent_component_0TaiDayHrlo = ()=>{ text: '' }); // Double count watch - useTaskQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_parent_component_usetask_gdh1etuwqbu"), "Parent_component_useTask_gDH1EtUWqBU", [ + useTaskQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Parent_component_useTask_gDH1EtUWqBU"), "Parent_component_useTask_gDH1EtUWqBU", [ state ])); return /*#__PURE__*/ _jsxQ("div", null, { - onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_parent_component_div_onclick_c5xe49nqd3a"), "Parent_component_div_onClick_C5XE49Nqd3A") + onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_Parent_component_div_onClick_C5XE49Nqd3A"), "Parent_component_div_onClick_C5XE49Nqd3A") }, _fnSignal((p0)=>p0.text, [ state ], "p0.text"), 3, "u6_0"); @@ -151,7 +151,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": "test.tsx_entry_Parent", "displayName": "test.tsx_Parent_component", "hash": "0TaiDayHrlo", - "canonicalFilename": "test.tsx_parent_component_0taidayhrlo", + "canonicalFilename": "test.tsx_Parent_component_0TaiDayHrlo", "path": "", "extension": "js", "parent": null, @@ -164,7 +164,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_parent_component_div_onclick_c5xe49nqd3a.js (ENTRY POINT)== +============================= test.tsx_Parent_component_div_onClick_C5XE49Nqd3A.js (ENTRY POINT)== export const Parent_component_div_onClick_C5XE49Nqd3A = ()=>console.log('parent'); @@ -177,7 +177,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Parent_component_div_onClick", "hash": "C5XE49Nqd3A", - "canonicalFilename": "test.tsx_parent_component_div_onclick_c5xe49nqd3a", + "canonicalFilename": "test.tsx_Parent_component_div_onClick_C5XE49Nqd3A", "path": "", "extension": "js", "parent": "Parent_component_0TaiDayHrlo", @@ -190,7 +190,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_child_component_9gyf01gdkqw.js == +============================= test.tsx_Child_component_9GyF01GDKqw.js == import { _fnSignal } from "@builder.io/qwik"; import { _jsxQ } from "@builder.io/qwik"; @@ -202,11 +202,11 @@ export const Child_component_9GyF01GDKqw = ()=>{ text: '' }); // Double count watch - useTaskQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_child_component_usetask_oh4n7zeqjku"), "Child_component_useTask_Oh4n7ZeqJkU", [ + useTaskQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Child_component_useTask_Oh4n7ZeqJkU"), "Child_component_useTask_Oh4n7ZeqJkU", [ state ])); return /*#__PURE__*/ _jsxQ("div", null, { - onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_child_component_div_onclick_ellivsnaioq"), "Child_component_div_onClick_elliVSnAiOQ") + onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_Child_component_div_onClick_elliVSnAiOQ"), "Child_component_div_onClick_elliVSnAiOQ") }, _fnSignal((p0)=>p0.text, [ state ], "p0.text"), 3, "u6_1"); @@ -221,7 +221,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": "test.tsx_entry_Child", "displayName": "test.tsx_Child_component", "hash": "9GyF01GDKqw", - "canonicalFilename": "test.tsx_child_component_9gyf01gdkqw", + "canonicalFilename": "test.tsx_Child_component_9GyF01GDKqw", "path": "", "extension": "js", "parent": null, @@ -234,7 +234,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_child_component_div_onclick_ellivsnaioq.js (ENTRY POINT)== +============================= test.tsx_Child_component_div_onClick_elliVSnAiOQ.js (ENTRY POINT)== export const Child_component_div_onClick_elliVSnAiOQ = ()=>console.log('child'); @@ -247,7 +247,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Child_component_div_onClick", "hash": "elliVSnAiOQ", - "canonicalFilename": "test.tsx_child_component_div_onclick_ellivsnaioq", + "canonicalFilename": "test.tsx_Child_component_div_onClick_elliVSnAiOQ", "path": "", "extension": "js", "parent": "Child_component_9GyF01GDKqw", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_with_style.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_with_style.snap index a5f2d1237a5..93bb93ab4aa 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_with_style.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_with_style.snap @@ -17,7 +17,7 @@ export const Foo = component$(() => { tagName: "my-foo", }); -============================= test.tsx_foo_component_usestyles_pv9tscbihw8.tsx (ENTRY POINT)== +============================= test.tsx_Foo_component_useStyles_pV9TSCBIhw8.tsx (ENTRY POINT)== export const Foo_component_useStyles_pV9TSCBIhw8 = '.class {}'; @@ -30,7 +30,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_useStyles", "hash": "pV9TSCBIhw8", - "canonicalFilename": "test.tsx_foo_component_usestyles_pv9tscbihw8", + "canonicalFilename": "test.tsx_Foo_component_useStyles_pV9TSCBIhw8", "path": "", "extension": "tsx", "parent": "Foo_component_HTDRsvUbLiE", @@ -43,12 +43,12 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_htdrsvublie.tsx (ENTRY POINT)== +============================= test.tsx_Foo_component_HTDRsvUbLiE.tsx (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; import { useStylesQrl } from "@builder.io/qwik"; export const Foo_component_HTDRsvUbLiE = ()=>{ - useStylesQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_usestyles_pv9tscbihw8"), "Foo_component_useStyles_pV9TSCBIhw8")); + useStylesQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_useStyles_pV9TSCBIhw8"), "Foo_component_useStyles_pV9TSCBIhw8")); return
; }; @@ -61,7 +61,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component", "hash": "HTDRsvUbLiE", - "canonicalFilename": "test.tsx_foo_component_htdrsvublie", + "canonicalFilename": "test.tsx_Foo_component_HTDRsvUbLiE", "path": "", "extension": "tsx", "parent": null, @@ -78,7 +78,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Foo = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_htdrsvublie"), "Foo_component_HTDRsvUbLiE"), { +export const Foo = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_HTDRsvUbLiE"), "Foo_component_HTDRsvUbLiE"), { tagName: "my-foo" }); diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_with_tagname.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_with_tagname.snap index 73c40aefef1..444c59ce06b 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_with_tagname.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_with_tagname.snap @@ -19,11 +19,11 @@ export const Foo = component$(() => { tagName: "my-foo", }); -============================= test.tsx_foo_component_htdrsvublie.tsx (ENTRY POINT)== +============================= test.tsx_Foo_component_HTDRsvUbLiE.tsx (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; export const Foo_component_HTDRsvUbLiE = ()=>{ - return /*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_1_dvu6fitwgly"), "Foo_component_1_DvU6FitWglY"); + return /*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_1_DvU6FitWglY"), "Foo_component_1_DvU6FitWglY"); }; @@ -35,7 +35,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component", "hash": "HTDRsvUbLiE", - "canonicalFilename": "test.tsx_foo_component_htdrsvublie", + "canonicalFilename": "test.tsx_Foo_component_HTDRsvUbLiE", "path": "", "extension": "tsx", "parent": null, @@ -48,7 +48,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_foo_component_1_dvu6fitwgly.tsx (ENTRY POINT)== +============================= test.tsx_Foo_component_1_DvU6FitWglY.tsx (ENTRY POINT)== export const Foo_component_1_DvU6FitWglY = ()=>{ return
@@ -65,7 +65,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Foo_component_1", "hash": "DvU6FitWglY", - "canonicalFilename": "test.tsx_foo_component_1_dvu6fitwgly", + "canonicalFilename": "test.tsx_Foo_component_1_DvU6FitWglY", "path": "", "extension": "tsx", "parent": "Foo_component_HTDRsvUbLiE", @@ -82,7 +82,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Foo = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_foo_component_htdrsvublie"), "Foo_component_HTDRsvUbLiE"), { +export const Foo = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Foo_component_HTDRsvUbLiE"), "Foo_component_HTDRsvUbLiE"), { tagName: "my-foo" }); diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__impure_template_fns.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__impure_template_fns.snap index 2cef78c679e..4f6efb8c6e5 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__impure_template_fns.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__impure_template_fns.snap @@ -27,7 +27,7 @@ expression: output ); }); -============================= test.tsx_test_component_luxexe0dqrg.ts (ENTRY POINT)== +============================= test.tsx_test_component_LUXeXe0DQrg.ts (ENTRY POINT)== import { Fragment as _Fragment } from "@builder.io/qwik/jsx-runtime"; import { _jsxC } from "@builder.io/qwik"; @@ -43,7 +43,7 @@ export const test_component_LUXeXe0DQrg = ()=>{ /*#__PURE__*/ _jsxQ("p", null, null, foo("test"), 1, null), /*#__PURE__*/ _jsxQ("p", null, null, foo`test`, 1, null), /*#__PURE__*/ _jsxQ("button", null, { - onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_fragment_button_onclick_ef3qezgqwcy"), "test_component_Fragment_button_onClick_eF3QEzgQWcY", [ + onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_Fragment_button_onClick_eF3QEzgQWcY"), "test_component_Fragment_button_onClick_eF3QEzgQWcY", [ count ]) }, "Count up", 3, null) @@ -60,7 +60,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_test_component", "hash": "LUXeXe0DQrg", - "canonicalFilename": "test.tsx_test_component_luxexe0dqrg", + "canonicalFilename": "test.tsx_test_component_LUXeXe0DQrg", "path": "", "extension": "ts", "parent": null, @@ -73,7 +73,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_test_component_fragment_button_onclick_ef3qezgqwcy.ts (ENTRY POINT)== +============================= test.tsx_test_component_Fragment_button_onClick_eF3QEzgQWcY.ts (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; export const test_component_Fragment_button_onClick_eF3QEzgQWcY = ()=>{ @@ -90,7 +90,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_test_component_Fragment_button_onClick", "hash": "eF3QEzgQWcY", - "canonicalFilename": "test.tsx_test_component_fragment_button_onclick_ef3qezgqwcy", + "canonicalFilename": "test.tsx_test_component_Fragment_button_onClick_eF3QEzgQWcY", "path": "", "extension": "ts", "parent": "test_component_LUXeXe0DQrg", @@ -114,7 +114,7 @@ const useFoo = (count)=>{ }; return tag; }; -export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_luxexe0dqrg"), "test_component_LUXeXe0DQrg")); +export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_LUXeXe0DQrg"), "test_component_LUXeXe0DQrg")); export { useFoo as _auto_useFoo }; diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__issue_150.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__issue_150.snap index b92fc49a036..21343a4d3f7 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__issue_150.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__issue_150.snap @@ -30,12 +30,12 @@ const d = $(()=>console.log('thing')); import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Greeter = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_greeter_component_n7hug2hhu0q"), "Greeter_component_n7HuG2hhU0Q")); -/*#__PURE__*/ qrl(()=>import("./test.tsx_d_wknfjeiqvua"), "d_wKNFJEIQVUA"); +export const Greeter = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Greeter_component_n7HuG2hhU0Q"), "Greeter_component_n7HuG2hhU0Q")); +/*#__PURE__*/ qrl(()=>import("./test.tsx_d_wKNFJEIQVUA"), "d_wKNFJEIQVUA"); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAIA,OAAO,MAAM,wBAAU,yHAapB\"}") -============================= test.tsx_d_wknfjeiqvua.js (ENTRY POINT)== +============================= test.tsx_d_wKNFJEIQVUA.js (ENTRY POINT)== export const d_wKNFJEIQVUA = ()=>console.log('thing'); export { _hW } from "@builder.io/qwik"; @@ -49,7 +49,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_d", "hash": "wKNFJEIQVUA", - "canonicalFilename": "test.tsx_d_wknfjeiqvua", + "canonicalFilename": "test.tsx_d_wKNFJEIQVUA", "path": "", "extension": "js", "parent": null, @@ -62,7 +62,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_greeter_component_1_krcndswhx4u.js (ENTRY POINT)== +============================= test.tsx_Greeter_component_1_krCndSwhX4U.js (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; import { _jsxQ } from "@builder.io/qwik"; @@ -88,7 +88,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Greeter_component_1", "hash": "krCndSwhX4U", - "canonicalFilename": "test.tsx_greeter_component_1_krcndswhx4u", + "canonicalFilename": "test.tsx_Greeter_component_1_krCndSwhX4U", "path": "", "extension": "js", "parent": "Greeter_component_n7HuG2hhU0Q", @@ -101,12 +101,12 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_greeter_component_n7hug2hhu0q.js (ENTRY POINT)== +============================= test.tsx_Greeter_component_n7HuG2hhU0Q.js (ENTRY POINT)== import { qrl } from "@builder.io/qwik"; export const Greeter_component_n7HuG2hhU0Q = ()=>{ const stuff = useStore(); - return /*#__PURE__*/ qrl(()=>import("./test.tsx_greeter_component_1_krcndswhx4u"), "Greeter_component_1_krCndSwhX4U", [ + return /*#__PURE__*/ qrl(()=>import("./test.tsx_Greeter_component_1_krCndSwhX4U"), "Greeter_component_1_krCndSwhX4U", [ stuff ]); }; @@ -120,7 +120,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Greeter_component", "hash": "n7HuG2hhU0Q", - "canonicalFilename": "test.tsx_greeter_component_n7hug2hhu0q", + "canonicalFilename": "test.tsx_Greeter_component_n7HuG2hhU0Q", "path": "", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__issue_5008.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__issue_5008.snap index 4a43cd54a97..cfb5e01adac 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__issue_5008.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__issue_5008.snap @@ -27,11 +27,11 @@ expression: output import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_luxexe0dqrg"), "test_component_LUXeXe0DQrg")); +export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_LUXeXe0DQrg"), "test_component_LUXeXe0DQrg")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGQ,6BAAe,mHAaZ\"}") -============================= test.tsx_test_component_luxexe0dqrg.js (ENTRY POINT)== +============================= test.tsx_test_component_LUXeXe0DQrg.js (ENTRY POINT)== import { Fragment as _Fragment } from "@builder.io/qwik/jsx-runtime"; import { _jsxC } from "@builder.io/qwik"; @@ -48,7 +48,7 @@ export const test_component_LUXeXe0DQrg = ()=>{ return /*#__PURE__*/ _jsxC(_Fragment, { children: [ /*#__PURE__*/ _jsxQ("button", null, { - onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_fragment_button_onclick_ef3qezgqwcy"), "test_component_Fragment_button_onClick_eF3QEzgQWcY", [ + onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_Fragment_button_onClick_eF3QEzgQWcY"), "test_component_Fragment_button_onClick_eF3QEzgQWcY", [ store ]) }, "+1", 3, null), @@ -75,7 +75,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_test_component", "hash": "LUXeXe0DQrg", - "canonicalFilename": "test.tsx_test_component_luxexe0dqrg", + "canonicalFilename": "test.tsx_test_component_LUXeXe0DQrg", "path": "", "extension": "js", "parent": null, @@ -88,7 +88,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_test_component_fragment_button_onclick_ef3qezgqwcy.js (ENTRY POINT)== +============================= test.tsx_test_component_Fragment_button_onClick_eF3QEzgQWcY.js (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; export const test_component_Fragment_button_onClick_eF3QEzgQWcY = ()=>{ @@ -105,7 +105,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_test_component_Fragment_button_onClick", "hash": "eF3QEzgQWcY", - "canonicalFilename": "test.tsx_test_component_fragment_button_onclick_ef3qezgqwcy", + "canonicalFilename": "test.tsx_test_component_Fragment_button_onClick_eF3QEzgQWcY", "path": "", "extension": "js", "parent": "test_component_LUXeXe0DQrg", diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__issue_964.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__issue_964.snap index 67b38fe6dd7..d74e83fb2e9 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__issue_964.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__issue_964.snap @@ -20,11 +20,11 @@ export const App = component$(() => { import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_app_component_ckepmxzlub0"), "App_component_ckEPmXZlub0")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_App_component_ckEPmXZlub0"), "App_component_ckEPmXZlub0")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAGA,OAAO,MAAM,oBAAM,iHAMhB\"}") -============================= test.tsx_app_component_ckepmxzlub0.js (ENTRY POINT)== +============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)== import { _jsxQ } from "@builder.io/qwik"; export const App_component_ckEPmXZlub0 = ()=>{ @@ -43,7 +43,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_App_component", "hash": "ckEPmXZlub0", - "canonicalFilename": "test.tsx_app_component_ckepmxzlub0", + "canonicalFilename": "test.tsx_App_component_ckEPmXZlub0", "path": "", "extension": "js", "parent": null, diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__lib_mode_fn_signal.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__lib_mode_fn_signal.snap index 7456641e8ee..45008447507 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__lib_mode_fn_signal.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__lib_mode_fn_signal.snap @@ -20,7 +20,7 @@ export const Counter = component$(() => { ); }); -============================= test.tsx_counter_component_ztmrhll09gg.ts (ENTRY POINT)== +============================= test.tsx_Counter_component_zTmRHlL09Gg.ts (ENTRY POINT)== import { _fnSignal } from "@builder.io/qwik"; import { _jsxQ } from "@builder.io/qwik"; @@ -35,7 +35,7 @@ export const Counter_component_zTmRHlL09Gg = ()=>{ ], "p0.value") ], 3, null), /*#__PURE__*/ _jsxQ("p", null, null, /*#__PURE__*/ _jsxQ("button", null, { - onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_counter_component_div_p_button_onclick_kqq00u8qaim"), "Counter_component_div_p_button_onClick_Kqq00U8qaIM", [ + onClick$: /*#__PURE__*/ qrl(()=>import("./test.tsx_Counter_component_div_p_button_onClick_Kqq00U8qaIM"), "Counter_component_div_p_button_onClick_Kqq00U8qaIM", [ count ]) }, "Increment", 3, null), 3, null) @@ -51,7 +51,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Counter_component", "hash": "zTmRHlL09Gg", - "canonicalFilename": "test.tsx_counter_component_ztmrhll09gg", + "canonicalFilename": "test.tsx_Counter_component_zTmRHlL09Gg", "path": "", "extension": "ts", "parent": null, @@ -64,7 +64,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma ] } */ -============================= test.tsx_counter_component_div_p_button_onclick_kqq00u8qaim.ts (ENTRY POINT)== +============================= test.tsx_Counter_component_div_p_button_onClick_Kqq00U8qaIM.ts (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; export const Counter_component_div_p_button_onClick_Kqq00U8qaIM = ()=>{ @@ -81,7 +81,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma "entry": null, "displayName": "test.tsx_Counter_component_div_p_button_onClick", "hash": "Kqq00U8qaIM", - "canonicalFilename": "test.tsx_counter_component_div_p_button_onclick_kqq00u8qaim", + "canonicalFilename": "test.tsx_Counter_component_div_p_button_onClick_Kqq00U8qaIM", "path": "", "extension": "ts", "parent": "Counter_component_zTmRHlL09Gg", @@ -98,7 +98,7 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Counter = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_counter_component_ztmrhll09gg"), "Counter_component_zTmRHlL09Gg")); +export const Counter = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_Counter_component_zTmRHlL09Gg"), "Counter_component_zTmRHlL09Gg")); Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAEA,OAAO,MAAM,wBAAU,yHAWpB\"}") diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__relative_paths.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__relative_paths.snap index df55d454e24..6a164d05ebd 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__relative_paths.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__relative_paths.snap @@ -3,7 +3,7 @@ source: packages/qwik/src/optimizer/core/src/test.rs assertion_line: 3302 expression: output --- -============================= ../../node_modules/dep/dist/lib.mjs_app_component_div_p_button_onclick_8dwua0cjar4.js (ENTRY POINT)== +============================= ../../node_modules/dep/dist/lib.mjs_App_component_div_p_button_onClick_8dWUa0cJAr4.js (ENTRY POINT)== import { useLexicalScope } from "@builder.io/qwik"; export const App_component_div_p_button_onClick_8dWUa0cJAr4 = ()=>{ @@ -20,7 +20,7 @@ Some("{\"version\":3,\"sources\":[\"node_modules/dep/dist/lib.mjs\"],\"sourceRoo "entry": null, "displayName": "lib.mjs_App_component_div_p_button_onClick", "hash": "8dWUa0cJAr4", - "canonicalFilename": "lib.mjs_app_component_div_p_button_onclick_8dwua0cjar4", + "canonicalFilename": "lib.mjs_App_component_div_p_button_onClick_8dWUa0cJAr4", "path": "../../node_modules/dep/dist", "extension": "js", "parent": "App_component_AkbU84a8zes", @@ -33,7 +33,7 @@ Some("{\"version\":3,\"sources\":[\"node_modules/dep/dist/lib.mjs\"],\"sourceRoo ] } */ -============================= ../../node_modules/dep/dist/lib.mjs_app_component_akbu84a8zes.js (ENTRY POINT)== +============================= ../../node_modules/dep/dist/lib.mjs_App_component_AkbU84a8zes.js (ENTRY POINT)== import { _fnSignal } from "@builder.io/qwik"; import { _jsxQ } from "@builder.io/qwik"; @@ -49,7 +49,7 @@ export const App_component_AkbU84a8zes = ()=>{ ], "p0.count") ], 3, null), /*#__PURE__*/ _jsxQ("p", null, null, /*#__PURE__*/ _jsxQ("button", { - onClick$: /*#__PURE__*/ qrl(()=>import("./lib.mjs_app_component_div_p_button_onclick_8dwua0cjar4.js"), "App_component_div_p_button_onClick_8dWUa0cJAr4", [ + onClick$: /*#__PURE__*/ qrl(()=>import("./lib.mjs_App_component_div_p_button_onClick_8dWUa0cJAr4.js"), "App_component_div_p_button_onClick_8dWUa0cJAr4", [ store ]) }, null, "Click", 2, null), 1, null) @@ -65,7 +65,7 @@ Some("{\"version\":3,\"sources\":[\"node_modules/dep/dist/lib.mjs\"],\"sourceRoo "entry": null, "displayName": "lib.mjs_App_component", "hash": "AkbU84a8zes", - "canonicalFilename": "lib.mjs_app_component_akbu84a8zes", + "canonicalFilename": "lib.mjs_App_component_AkbU84a8zes", "path": "../../node_modules/dep/dist", "extension": "js", "parent": null, @@ -87,12 +87,12 @@ const useData = ()=>{ count: 0 }); }; -export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./lib.mjs_app_component_akbu84a8zes.js"), "App_component_AkbU84a8zes")); +export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./lib.mjs_App_component_AkbU84a8zes.js"), "App_component_AkbU84a8zes")); export { useData as _auto_useData }; Some("{\"version\":3,\"sources\":[\"node_modules/dep/dist/lib.mjs\"],\"sourceRoot\":\"/path/to/app/\",\"names\":[],\"mappings\":\";AACA,SAAS,YAAY,EAAc,QAAQ,QAAyB,mBAAmB;AAIvF,MAAM,UAAU;IACZ,OAAO,SAAS;QACZ,OAAO;IACX;AACJ;AAEA,OAAO,MAAM,MAAM,WAAW,GAAG,mHAuBA\"}") -============================= components/main.tsx_local_component_jj0v28bs0p8.js (ENTRY POINT)== +============================= components/main.tsx_Local_component_jJ0v28bs0p8.js (ENTRY POINT)== import { _jsxQ } from "@builder.io/qwik"; import { state } from "./sibling"; @@ -109,7 +109,7 @@ Some("{\"version\":3,\"sources\":[\"src/thing/components/main.tsx\"],\"sourceRoo "entry": null, "displayName": "main.tsx_Local_component", "hash": "jJ0v28bs0p8", - "canonicalFilename": "main.tsx_local_component_jj0v28bs0p8", + "canonicalFilename": "main.tsx_Local_component_jJ0v28bs0p8", "path": "components", "extension": "js", "parent": null, @@ -126,7 +126,7 @@ Some("{\"version\":3,\"sources\":[\"src/thing/components/main.tsx\"],\"sourceRoo import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Local = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./main.tsx_local_component_jj0v28bs0p8.js"), "Local_component_jJ0v28bs0p8")); +export const Local = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./main.tsx_Local_component_jJ0v28bs0p8.js"), "Local_component_jJ0v28bs0p8")); Some("{\"version\":3,\"sources\":[\"src/thing/components/main.tsx\"],\"sourceRoot\":\"/path/to/app/\",\"names\":[],\"mappings\":\";;AAIA,OAAO,MAAM,sBAAQ,wHAIlB\"}") diff --git a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__support_windows_paths.snap b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__support_windows_paths.snap index 5830876a649..abe5330c02a 100644 --- a/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__support_windows_paths.snap +++ b/packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__support_windows_paths.snap @@ -9,7 +9,7 @@ expression: output import { component$ } from '@builder.io/qwik'; export const Greeter = component$(() =>
) -============================= components/apps/apps.tsx_greeter_component_0jjovx068y0.ts (ENTRY POINT)== +============================= components/apps/apps.tsx_Greeter_component_0jjOvx068y0.ts (ENTRY POINT)== import { _jsxQ } from "@builder.io/qwik"; export const Greeter_component_0jjOvx068y0 = ()=>/*#__PURE__*/ _jsxQ("div", null, null, null, 3, "KD_0"); @@ -23,7 +23,7 @@ Some("{\"version\":3,\"sources\":[\"C:\\\\users\\\\apps/components/apps/apps.tsx "entry": null, "displayName": "apps.tsx_Greeter_component", "hash": "0jjOvx068y0", - "canonicalFilename": "apps.tsx_greeter_component_0jjovx068y0", + "canonicalFilename": "apps.tsx_Greeter_component_0jjOvx068y0", "path": "components/apps", "extension": "ts", "parent": null, @@ -40,7 +40,7 @@ Some("{\"version\":3,\"sources\":[\"C:\\\\users\\\\apps/components/apps/apps.tsx import { componentQrl } from "@builder.io/qwik"; import { qrl } from "@builder.io/qwik"; -export const Greeter = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./apps.tsx_greeter_component_0jjovx068y0"), "Greeter_component_0jjOvx068y0")); +export const Greeter = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./apps.tsx_Greeter_component_0jjOvx068y0"), "Greeter_component_0jjOvx068y0")); Some("{\"version\":3,\"sources\":[\"C:\\\\users\\\\apps/components/apps/apps.tsx\"],\"names\":[],\"mappings\":\";;AAEA,OAAO,MAAM,wBAAU,yHAAwB\"}") diff --git a/packages/qwik/src/optimizer/core/src/transform.rs b/packages/qwik/src/optimizer/core/src/transform.rs index 8be7e4d9f04..6777947fa19 100644 --- a/packages/qwik/src/optimizer/core/src/transform.rs +++ b/packages/qwik/src/optimizer/core/src/transform.rs @@ -2317,7 +2317,7 @@ fn compute_scoped_idents(all_idents: &[Id], all_decl: &[IdPlusType]) -> (Vec fn get_canonical_filename(display_name: &JsWord, symbol_name: &JsWord) -> JsWord { let hash = symbol_name.split('_').last().unwrap(); - JsWord::from(format!("{}_{}", display_name, hash).to_ascii_lowercase()) + JsWord::from(format!("{}_{}", display_name, hash)) } fn parse_symbol_name( diff --git a/packages/qwik/src/optimizer/src/plugins/plugin.ts b/packages/qwik/src/optimizer/src/plugins/plugin.ts index 5a89109b640..b2949a073bf 100644 --- a/packages/qwik/src/optimizer/src/plugins/plugin.ts +++ b/packages/qwik/src/optimizer/src/plugins/plugin.ts @@ -468,7 +468,12 @@ export function createPlugin(optimizerOptions: OptimizerOptions = {}) { let result: ResolveIdResult; - // During regular builds, we'll encounter parents before QRLs, so this will match + /** At this point, the request has been normalized. */ + + /** + * Check if we know the QRL. During regular builds, we'll encounter and build parents before + * their QRLs, so this will always match. + */ if (parentIds.get(pathId)) { debug(`resolveId(${count}) Resolved already known ${pathId}`); result = { @@ -476,13 +481,14 @@ export function createPlugin(optimizerOptions: OptimizerOptions = {}) { moduleSideEffects: false, }; } else if ( - // We test with endsWith because the dev server might add a / - pathId.endsWith(QWIK_BUILD_ID) - ) { /** - * Now we're in the case where we have a QRL segment that hasn't been transformed yet or one - * of the virtual modules. + * Now the requests we handle are for one of the virtual modules, or a QRL segment that hasn't + * been transformed yet. */ + + // We test with endsWith because the dev server might add a / + pathId.endsWith(QWIK_BUILD_ID) + ) { if (opts.resolveQwikBuild) { debug(`resolveId(${count})`, 'Resolved', QWIK_BUILD_ID); result = { diff --git a/packages/qwik/src/optimizer/src/plugins/vite-dev-server.ts b/packages/qwik/src/optimizer/src/plugins/vite-dev-server.ts index fc2dcfafa58..f844f244295 100644 --- a/packages/qwik/src/optimizer/src/plugins/vite-dev-server.ts +++ b/packages/qwik/src/optimizer/src/plugins/vite-dev-server.ts @@ -56,7 +56,7 @@ function createSymbolMapper( 'qwik vite-dev-server symbolMapper: unknown qrl requested without parent:', symbolName ); - return [symbolName, `${base}${symbolName.toLowerCase()}.js`]; + return [symbolName, `${base}${symbolName}.js`]; } // on windows, absolute paths don't start with a slash const parentPath = normalizePath(path.dirname(parent)); @@ -64,7 +64,7 @@ function createSymbolMapper( const qrlPath = parentPath.startsWith(opts.rootDir) ? normalizePath(path.relative(opts.rootDir, parentPath)) : `@fs/${parentPath}`; - const qrlFile = encode(`${qrlPath}/${parentFile.toLowerCase()}_${symbolName.toLowerCase()}.js`); + const qrlFile = encode(`${qrlPath}/${parentFile}_${symbolName}.js`); return [symbolName, `${base}${qrlFile}`]; }; } From 2b3693f59f671d27cfdc93f6ea4481df08827fbf Mon Sep 17 00:00:00 2001 From: Wout Mertens Date: Sun, 27 Oct 2024 10:23:34 +0100 Subject: [PATCH 13/23] fix(build): always have qwik binary available To have the bin `qwik` working during installs, the file it points to from package.json must exist. We already had a perpetual script in the qwik package but it got ignored at some point. --- package.json | 2 +- packages/qwik/package.json | 5 +++-- scripts/submodule-cli.ts | 7 +------ 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index e424719a072..e91556dd29b 100644 --- a/package.json +++ b/package.json @@ -209,7 +209,7 @@ "build.watch": "tsm scripts/index.ts --build --qwikcity --watch --dev --platform-binding", "change": "changeset", "cli": "pnpm build.cli && node packages/create-qwik/dist/create-qwik.cjs && tsm scripts/validate-cli.ts --copy-local-qwik-dist", - "cli.qwik": "pnpm build.cli && node packages/qwik/dist/qwik-cli.cjs", + "cli.qwik": "pnpm build.cli && packages/qwik/qwik-cli.cjs", "cli.validate": "tsm scripts/validate-cli.ts", "deps": "corepack pnpm upgrade -i -r --latest && syncpack fix-mismatches && corepack pnpm dedupe", "docs.dev": "cd packages/docs && pnpm build.repl-sw && pnpm dev", diff --git a/packages/qwik/package.json b/packages/qwik/package.json index 5df5d129eb6..f39750b6e7e 100644 --- a/packages/qwik/package.json +++ b/packages/qwik/package.json @@ -4,7 +4,7 @@ "version": "1.9.1", "annotation": "This package.json is for internal use in the monorepo, the build actually makes a new package.json for the published package via scripts/package-json.ts", "bin": { - "qwik": "./dist/qwik-cli.cjs" + "qwik": "./qwik-cli.cjs" }, "bugs": "https://github.com/QwikDev/qwik/issues", "contributors": [ @@ -137,7 +137,8 @@ "loader.d.ts", "optimizer.d.ts", "server.d.ts", - "testing.d.ts" + "testing.d.ts", + "qwik-cli.cjs" ], "homepage": "https://qwik.dev/", "keywords": [ diff --git a/scripts/submodule-cli.ts b/scripts/submodule-cli.ts index 8a6d38045f6..a4397ec3400 100644 --- a/scripts/submodule-cli.ts +++ b/scripts/submodule-cli.ts @@ -2,7 +2,7 @@ import { build } from 'esbuild'; import { existsSync, rmSync } from 'node:fs'; import { join } from 'node:path'; import { copyStartersDir } from './create-qwik-cli'; -import { type BuildConfig, copyDir, copyFile, getBanner, nodeTarget } from './util'; +import { type BuildConfig, copyDir, getBanner, nodeTarget } from './util'; /** Builds @builder.io/qwik/cli */ export async function submoduleCli(config: BuildConfig) { @@ -42,11 +42,6 @@ export async function submoduleCli(config: BuildConfig) { }, }); - await copyFile( - join(config.srcQwikDir, submodule, 'qwik.cjs'), - join(config.distQwikPkgDir, 'qwik-cli.cjs') - ); - await copyStartersDir(config, config.distQwikPkgDir, ['features', 'adapters']); const tmplSrc = join(config.startersDir, 'templates'); From 32d23a2f7859ebfd84b8751acc68de07b6a87708 Mon Sep 17 00:00:00 2001 From: Shai Reznik Date: Mon, 28 Oct 2024 11:17:36 +0200 Subject: [PATCH 14/23] fixed link to community --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1736c749ca5..47c72ca2e1a 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ bun create qwik@latest - Ping us at [@QwikDev](https://twitter.com/QwikDev) - Join our [Discord](https://qwik.dev/chat) community -- Join all the [other community groups](https://qwikcommunity.com) +- Join all the [other community groups](https://qwik.dev/ecosystem/#community) ## Development From aa9fefdd0f8031116a4578dbb14481b99b672480 Mon Sep 17 00:00:00 2001 From: Shai Reznik Date: Tue, 29 Oct 2024 12:41:07 +0200 Subject: [PATCH 15/23] enhanced changesets notes --- .changeset/changelog-github-custom.cjs | 9 +++------ .changeset/changelog-github-custom.ts | 9 +++------ .changeset/lazy-worms-attack.md | 2 +- .changeset/many-turtles-cough.md | 2 +- .changeset/real-garlics-argue.md | 2 +- .changeset/shaggy-apes-kneel.md | 2 +- .changeset/silver-countries-kiss.md | 2 +- .changeset/unlucky-experts-check.md | 2 +- 8 files changed, 12 insertions(+), 18 deletions(-) diff --git a/.changeset/changelog-github-custom.cjs b/.changeset/changelog-github-custom.cjs index c2fbf4eb4d4..aafbd513782 100644 --- a/.changeset/changelog-github-custom.cjs +++ b/.changeset/changelog-github-custom.cjs @@ -351,12 +351,9 @@ var changelogFunctions = { .concat(links.pull || links.commit, ')'); } emojiFirstline = firstLine - .replace('FEAT:', '✨ ') - .replace('feat:', '✨ ') - .replace('fix:', '🐞🩹') - .replace('FIX:', '🐞🩹') - .replace('DOCS:', '📃') - .replace('docs:', '📃'); + .replace(/feat:/i, '✨ ') + .replace(/fix:/i, '🐞🩹') + .replace(/docs:/i, '📃'); return [ 2 /*return*/, '\n\n- ' diff --git a/.changeset/changelog-github-custom.ts b/.changeset/changelog-github-custom.ts index d151d212941..c51cdf71ad4 100644 --- a/.changeset/changelog-github-custom.ts +++ b/.changeset/changelog-github-custom.ts @@ -116,12 +116,9 @@ const changelogFunctions: ChangelogFunctions = { } const emojiFirstline = firstLine - .replace('FEAT:', '✨ ') - .replace('feat:', '✨ ') - .replace('fix:', '🐞🩹') - .replace('FIX:', '🐞🩹') - .replace('DOCS:', '📃') - .replace('docs:', '📃'); + .replace(/feat:/i, '✨ ') + .replace(/fix:/i, '🐞🩹') + .replace(/docs:/i, '📃'); return `\n\n- ${emojiFirstline} ${suffix}\n${futureLines.map((l) => ` ${l}`).join('\n')}`; }, diff --git a/.changeset/lazy-worms-attack.md b/.changeset/lazy-worms-attack.md index de866e201c0..19476fcf4e0 100644 --- a/.changeset/lazy-worms-attack.md +++ b/.changeset/lazy-worms-attack.md @@ -2,4 +2,4 @@ '@builder.io/qwik-city': patch --- -MDX content no longer ignores Layout components. See [the MDX docs](https://mdxjs.com/docs/using-mdx/#layout) for more information. +FIX: MDX content no longer ignores Layout components. See [the MDX docs](https://mdxjs.com/docs/using-mdx/#layout) for more information. diff --git a/.changeset/many-turtles-cough.md b/.changeset/many-turtles-cough.md index 18c13ce2ac6..422b0044e4f 100644 --- a/.changeset/many-turtles-cough.md +++ b/.changeset/many-turtles-cough.md @@ -2,4 +2,4 @@ '@builder.io/qwik-city': patch --- -Fix action redirect regression where searchParams were appended +FIX: Fixed action redirect regression where searchParams were appended diff --git a/.changeset/real-garlics-argue.md b/.changeset/real-garlics-argue.md index 45032734e77..1d5a52fc08b 100644 --- a/.changeset/real-garlics-argue.md +++ b/.changeset/real-garlics-argue.md @@ -2,4 +2,4 @@ '@builder.io/qwik-city': patch --- -Fixed MDX layout default export being ignored by transformer. +FIX: Fixed MDX layout default export being ignored by transformer. diff --git a/.changeset/shaggy-apes-kneel.md b/.changeset/shaggy-apes-kneel.md index 3330fd795e9..00284f4454a 100644 --- a/.changeset/shaggy-apes-kneel.md +++ b/.changeset/shaggy-apes-kneel.md @@ -2,4 +2,4 @@ '@builder.io/qwik': patch --- -sync$ QRLs will now be serialized into the HTML in a shorter form +FEAT: sync$ QRLs will now be serialized into the HTML in a shorter form diff --git a/.changeset/silver-countries-kiss.md b/.changeset/silver-countries-kiss.md index e83044e5f1b..68781b23684 100644 --- a/.changeset/silver-countries-kiss.md +++ b/.changeset/silver-countries-kiss.md @@ -2,4 +2,4 @@ '@builder.io/qwik-city': patch --- -Prevent unexpected caching for q-data.json +FIX: Prevent unexpected caching for q-data.json diff --git a/.changeset/unlucky-experts-check.md b/.changeset/unlucky-experts-check.md index 1c6950a3b69..39d6189bf2c 100644 --- a/.changeset/unlucky-experts-check.md +++ b/.changeset/unlucky-experts-check.md @@ -2,4 +2,4 @@ '@builder.io/qwik': patch --- -Allow setting `linkFetchPriority` for modulepreload links in the prefetch strategy. Also fix the links in dev mode +FEAT: Allow setting `linkFetchPriority` for modulepreload links in the prefetch strategy. Also fix the links in dev mode From f248246af4b2ba3c19e38deb3518e8eaa3d2b506 Mon Sep 17 00:00:00 2001 From: Grandschtroumpf Date: Tue, 29 Oct 2024 13:58:52 +0100 Subject: [PATCH 16/23] update changeset --- .changeset/short-cycles-bake.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/short-cycles-bake.md b/.changeset/short-cycles-bake.md index eb4705c636a..b674ffa3633 100644 --- a/.changeset/short-cycles-bake.md +++ b/.changeset/short-cycles-bake.md @@ -2,4 +2,4 @@ '@builder.io/qwik': patch --- -Expose unwrapProxy as a low level API +Expose unwrapStore as a low level API From 3af5741c3e497e9ded0384c19afd3945797eea9b Mon Sep 17 00:00:00 2001 From: Wout Mertens Date: Tue, 29 Oct 2024 23:44:58 +0100 Subject: [PATCH 17/23] chore: deprecate async useComputed$ --- .changeset/eleven-rabbits-cross.md | 26 ++++++++++++ packages/qwik/src/core/use/use-task.ts | 56 +++++++++++++++++++------- 2 files changed, 67 insertions(+), 15 deletions(-) create mode 100644 .changeset/eleven-rabbits-cross.md diff --git a/.changeset/eleven-rabbits-cross.md b/.changeset/eleven-rabbits-cross.md new file mode 100644 index 00000000000..55040bd3953 --- /dev/null +++ b/.changeset/eleven-rabbits-cross.md @@ -0,0 +1,26 @@ +--- +'@builder.io/qwik': patch +--- + +CHORE: Async functions in `useComputed$` are deprecated. Use `useTask$` or `useResource$` instead, or this function: + +```tsx +export const useAsyncComputed$ = (qrlFn: QRL<() => Promise>) => { + const sig = useSignal(); + useTask(({ track }) => { + const result = track(qrlFn); + if (result && 'then' in result) { + result.then( + (val) => (sig.value = val), + (err) => { + console.error('async computed function threw!', err); + throw error; + } + ); + } else { + sig.value = result; + } + }); + return sig; +}; +``` diff --git a/packages/qwik/src/core/use/use-task.ts b/packages/qwik/src/core/use/use-task.ts index b687efe2626..a7e54faaa9a 100644 --- a/packages/qwik/src/core/use/use-task.ts +++ b/packages/qwik/src/core/use/use-task.ts @@ -1,6 +1,6 @@ import { newInvokeContext, invoke, waitAndRun, untrack, useInvokeContext } from './use-core'; -import { logError, logErrorAndStop } from '../util/log'; -import { delay, safeCall, maybeThen } from '../util/promises'; +import { logError, logErrorAndStop, logOnceWarn } from '../util/log'; +import { delay, safeCall, maybeThen, isPromise } from '../util/promises'; import { isFunction, isObject, type ValueOrPromise } from '../util/types'; import { isServerPlatform } from '../platform/platform'; import { implicit$FirstArg } from '../util/implicit_dollar'; @@ -332,7 +332,21 @@ export const useComputedQrl = (qrl: QRL>): Signal> = }; /** - * Hook that returns a read-only signal that updates when signals used in the `ComputedFn` change. + * Returns a computed signal which is calculated from the given function. A computed signal is a + * signal which is calculated from other signals. When the signals change, the computed signal is + * recalculated, and if the result changed, all tasks which are tracking the signal will be re-run + * and all components that read the signal will be re-rendered. + * + * The function must be synchronous and must not have any side effects. + * + * Async functions are deprecated because: + * + * - When calculating the first time, it will see it's a promise and it will restart the render + * function. + * - Qwik can't track used signals after the first await, which leads to subtle bugs. + * - Both `useTask$` and `useResource$` are available, without these problems. + * + * In v2, async functions won't work. * * @public */ @@ -732,19 +746,31 @@ export const runComputed = ( subsManager.$clearSub$(task); }) as ComputedFn; - return safeCall( - taskFn, - (returnValue) => - untrack(() => { - const signal = task.$state$! as SignalInternal; - signal[QObjectSignalFlags] &= ~SIGNAL_UNASSIGNED; - signal.untrackedValue = returnValue; - signal[QObjectManagerSymbol].$notifySubs$(); - }), - (reason) => { - handleError(reason, hostElement, rCtx); + const ok = (returnValue: any) => { + untrack(() => { + const signal = task.$state$! as SignalInternal; + signal[QObjectSignalFlags] &= ~SIGNAL_UNASSIGNED; + signal.untrackedValue = returnValue; + signal[QObjectManagerSymbol].$notifySubs$(); + }); + }; + const fail = (reason: unknown) => { + handleError(reason, hostElement, rCtx); + }; + try { + const result = taskFn(); + if (isPromise(result)) { + const stack = new Error( + 'useComputed$: Async functions in computed tasks are deprecated and will stop working in v2. Use useTask$ or useResource$ instead.' + ).stack; + logOnceWarn(stack); + return result.then(ok, fail); + } else { + ok(result); } - ); + } catch (reason) { + fail(reason); + } }; export const cleanupTask = (task: SubscriberEffect) => { From c284819f17a7074bc7a52b6c2886edef53966311 Mon Sep 17 00:00:00 2001 From: Shai Reznik Date: Wed, 30 Oct 2024 01:41:56 +0200 Subject: [PATCH 18/23] updated changeset for async computed deprecation --- .changeset/eleven-rabbits-cross.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.changeset/eleven-rabbits-cross.md b/.changeset/eleven-rabbits-cross.md index 55040bd3953..4b604403b8a 100644 --- a/.changeset/eleven-rabbits-cross.md +++ b/.changeset/eleven-rabbits-cross.md @@ -1,8 +1,18 @@ --- -'@builder.io/qwik': patch +'@builder.io/qwik': minor --- -CHORE: Async functions in `useComputed$` are deprecated. Use `useTask$` or `useResource$` instead, or this function: +Async functions in `useComputed$` are deprecated. + +**Why?** + +- Qwik can't track used signals after the first await, which leads to subtle bugs. +- When calculating the first time, it will see it's a promise and it will restart the render function. +- Both `useTask$` and `useResource$` are available, without these problems. + +In v2, async functions won't work. + +Again, to get the same functionality use `useTask$` or `useResource$` instead, or this function: ```tsx export const useAsyncComputed$ = (qrlFn: QRL<() => Promise>) => { From 39fd36ddef591c46b7718775535c6f45e522c538 Mon Sep 17 00:00:00 2001 From: Shai Reznik Date: Wed, 30 Oct 2024 01:51:07 +0200 Subject: [PATCH 19/23] modified changesets for unwrapStore --- .changeset/short-cycles-bake.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.changeset/short-cycles-bake.md b/.changeset/short-cycles-bake.md index b674ffa3633..c85570c16b2 100644 --- a/.changeset/short-cycles-bake.md +++ b/.changeset/short-cycles-bake.md @@ -1,5 +1,7 @@ --- -'@builder.io/qwik': patch +'@builder.io/qwik': minor --- -Expose unwrapStore as a low level API +FEAT: Expose `unwrapStore` as a low level AP + +This enables developers to clone the content of a `useStore()` using `structureClone` or IndexedDB From 93b9b572cb3f00c99691f626edfa81392232daec Mon Sep 17 00:00:00 2001 From: Wout Mertens Date: Wed, 30 Oct 2024 07:34:54 +0100 Subject: [PATCH 20/23] fix(jsx): textarea type should accept text children --- .changeset/gentle-adults-compare.md | 5 +++++ packages/qwik/src/core/render/jsx/types/jsx-generated.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/gentle-adults-compare.md diff --git a/.changeset/gentle-adults-compare.md b/.changeset/gentle-adults-compare.md new file mode 100644 index 00000000000..3748cec64ac --- /dev/null +++ b/.changeset/gentle-adults-compare.md @@ -0,0 +1,5 @@ +--- +'@builder.io/qwik': patch +--- + +FIX: the type for `