-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'build/v2' into 7134_v2_once_render
- Loading branch information
Showing
14 changed files
with
680 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@qwik.dev/core': patch | ||
--- | ||
|
||
fix: convert destructured string prop to props variable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@qwik.dev/core': patch | ||
--- | ||
|
||
fix: destructured props for inline components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
.../qwik/src/optimizer/core/src/snapshots/qwik_core__test__destructure_args_colon_props.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
source: packages/qwik/src/optimizer/core/src/test.rs | ||
assertion_line: 3651 | ||
expression: output | ||
snapshot_kind: text | ||
--- | ||
==INPUT== | ||
|
||
|
||
import { component$ } from "@qwik.dev/core"; | ||
export default component$((props) => { | ||
const { 'bind:value': bindValue } = props; | ||
return ( | ||
<> | ||
{bindValue} | ||
</> | ||
); | ||
}); | ||
|
||
============================= test.js == | ||
|
||
import { componentQrl } from "@qwik.dev/core"; | ||
import { qrl } from "@qwik.dev/core"; | ||
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\":\";;AAEE,6BAAe,mHAOZ\"}") | ||
============================= test.tsx_test_component_LUXeXe0DQrg.js (ENTRY POINT)== | ||
|
||
import { Fragment as _Fragment } from "@qwik.dev/core/jsx-runtime"; | ||
import { _jsxSorted } from "@qwik.dev/core"; | ||
import { _wrapProp } from "@qwik.dev/core"; | ||
export const test_component_LUXeXe0DQrg = (props)=>{ | ||
return /*#__PURE__*/ _jsxSorted(_Fragment, null, null, _wrapProp(props, "bind:value"), 3, "u6_0"); | ||
}; | ||
|
||
|
||
Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;;0CAE4B,CAAC;IAE1B,qBACC,4CAFmC;AAMrC\"}") | ||
/* | ||
{ | ||
"origin": "test.tsx", | ||
"name": "test_component_LUXeXe0DQrg", | ||
"entry": null, | ||
"displayName": "test.tsx_test_component", | ||
"hash": "LUXeXe0DQrg", | ||
"canonicalFilename": "test.tsx_test_component_LUXeXe0DQrg", | ||
"path": "", | ||
"extension": "js", | ||
"parent": null, | ||
"ctxKind": "function", | ||
"ctxName": "component$", | ||
"captures": false, | ||
"loc": [ | ||
77, | ||
188 | ||
] | ||
} | ||
*/ | ||
== DIAGNOSTICS == | ||
|
||
[] |
64 changes: 64 additions & 0 deletions
64
...qwik/src/optimizer/core/src/snapshots/qwik_core__test__destructure_args_colon_props2.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- | ||
source: packages/qwik/src/optimizer/core/src/test.rs | ||
assertion_line: 3736 | ||
expression: output | ||
snapshot_kind: text | ||
--- | ||
==INPUT== | ||
|
||
|
||
import { component$, useSignal } from "@qwik.dev/core"; | ||
export default component$((props) => { | ||
const { 'bind:value': bindValue } = props; | ||
const test = useSignal(bindValue); | ||
return ( | ||
<> | ||
{test.value} | ||
</> | ||
); | ||
}); | ||
|
||
============================= test.js == | ||
|
||
import { componentQrl } from "@qwik.dev/core"; | ||
import { qrl } from "@qwik.dev/core"; | ||
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\":\";;AAEE,6BAAe,mHAQZ\"}") | ||
============================= test.tsx_test_component_LUXeXe0DQrg.js (ENTRY POINT)== | ||
|
||
import { Fragment as _Fragment } from "@qwik.dev/core/jsx-runtime"; | ||
import { _jsxSorted } from "@qwik.dev/core"; | ||
import { _wrapProp } from "@qwik.dev/core"; | ||
import { useSignal } from "@qwik.dev/core"; | ||
export const test_component_LUXeXe0DQrg = (props)=>{ | ||
const test = useSignal(props["bind:value"]); | ||
return /*#__PURE__*/ _jsxSorted(_Fragment, null, null, _wrapProp(test), 3, "u6_0"); | ||
}; | ||
|
||
|
||
Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;;;0CAE4B,CAAC;IAE1B,MAAM,OAAO,UADuB;IAEpC,qBACC,4CACC;AAGH\"}") | ||
/* | ||
{ | ||
"origin": "test.tsx", | ||
"name": "test_component_LUXeXe0DQrg", | ||
"entry": null, | ||
"displayName": "test.tsx_test_component", | ||
"hash": "LUXeXe0DQrg", | ||
"canonicalFilename": "test.tsx_test_component_LUXeXe0DQrg", | ||
"path": "", | ||
"extension": "js", | ||
"parent": null, | ||
"ctxKind": "function", | ||
"ctxName": "component$", | ||
"captures": false, | ||
"loc": [ | ||
88, | ||
238 | ||
] | ||
} | ||
*/ | ||
== DIAGNOSTICS == | ||
|
||
[] |
70 changes: 70 additions & 0 deletions
70
...qwik/src/optimizer/core/src/snapshots/qwik_core__test__destructure_args_colon_props3.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
--- | ||
source: packages/qwik/src/optimizer/core/src/test.rs | ||
assertion_line: 3758 | ||
expression: output | ||
snapshot_kind: text | ||
--- | ||
==INPUT== | ||
|
||
|
||
import { component$, useSignal } from "@qwik.dev/core"; | ||
export default component$((props) => { | ||
const { test, ...rest } = props; | ||
const test = useSignal(rest['bind:value']); | ||
return ( | ||
<> | ||
{test.value} | ||
</> | ||
); | ||
}); | ||
|
||
============================= test.js == | ||
|
||
import { componentQrl } from "@qwik.dev/core"; | ||
import { qrl } from "@qwik.dev/core"; | ||
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\":\";;AAEE,6BAAe,mHAQZ\"}") | ||
============================= test.tsx_test_component_LUXeXe0DQrg.js (ENTRY POINT)== | ||
|
||
import { Fragment as _Fragment } from "@qwik.dev/core/jsx-runtime"; | ||
import { _fnSignal } from "@qwik.dev/core"; | ||
import { _jsxSorted } from "@qwik.dev/core"; | ||
import { _restProps } from "@qwik.dev/core"; | ||
import { useSignal } from "@qwik.dev/core"; | ||
export const test_component_LUXeXe0DQrg = (props)=>{ | ||
const rest = _restProps(props, [ | ||
"test" | ||
]); | ||
useSignal(rest['bind:value']); | ||
return /*#__PURE__*/ _jsxSorted(_Fragment, null, null, _fnSignal((p0)=>p0.test.value, [ | ||
props | ||
], "p0.test.value"), 3, "u6_0"); | ||
}; | ||
|
||
|
||
Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;;;;0CAE4B,CAAC;4BACA;;;IACb,UAAU,IAAI,CAAC,aAAa;IACzC,qBACC,kDACC,GAJM,KAID,KAAK;;;AAGb\"}") | ||
/* | ||
{ | ||
"origin": "test.tsx", | ||
"name": "test_component_LUXeXe0DQrg", | ||
"entry": null, | ||
"displayName": "test.tsx_test_component", | ||
"hash": "LUXeXe0DQrg", | ||
"canonicalFilename": "test.tsx_test_component_LUXeXe0DQrg", | ||
"path": "", | ||
"extension": "js", | ||
"parent": null, | ||
"ctxKind": "function", | ||
"ctxName": "component$", | ||
"captures": false, | ||
"loc": [ | ||
88, | ||
237 | ||
] | ||
} | ||
*/ | ||
== DIAGNOSTICS == | ||
|
||
[] |
Oops, something went wrong.