|
| 1 | +--- |
| 2 | +source: packages/qwik/src/optimizer/core/src/test.rs |
| 3 | +assertion_line: 4275 |
| 4 | +expression: output |
| 5 | +snapshot_kind: text |
| 6 | +--- |
| 7 | +==INPUT== |
| 8 | + |
| 9 | + |
| 10 | +import { component$ } from '@builder.io/qwik'; |
| 11 | +export default component$((props) => { |
| 12 | + return (<p |
| 13 | + onHi$={() => 'hi'} |
| 14 | + {...props.foo} |
| 15 | + onHello$={props.helloHandler$} |
| 16 | + {...props.rest} |
| 17 | + onVar$={props.onVarHandler$} |
| 18 | + onConst$={() => 'const'} |
| 19 | + asd={"1"} |
| 20 | + />); |
| 21 | +}); |
| 22 | + |
| 23 | +============================= test.js == |
| 24 | + |
| 25 | +import { componentQrl } from "@qwik.dev/core"; |
| 26 | +import { qrl } from "@qwik.dev/core"; |
| 27 | +export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_LUXeXe0DQrg"), "test_component_LUXeXe0DQrg")); |
| 28 | + |
| 29 | + |
| 30 | +Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;AAEA,6BAAe,mHAUZ\"}") |
| 31 | +============================= test.tsx_test_component_p_onHi_MzKNRhr770k.js (ENTRY POINT)== |
| 32 | + |
| 33 | +export const test_component_p_onHi_MzKNRhr770k = ()=>'hi'; |
| 34 | + |
| 35 | + |
| 36 | +Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\"iDAIS,IAAM\"}") |
| 37 | +/* |
| 38 | +{ |
| 39 | + "origin": "test.tsx", |
| 40 | + "name": "test_component_p_onHi_MzKNRhr770k", |
| 41 | + "entry": null, |
| 42 | + "displayName": "test.tsx_test_component_p_onHi", |
| 43 | + "hash": "MzKNRhr770k", |
| 44 | + "canonicalFilename": "test.tsx_test_component_p_onHi_MzKNRhr770k", |
| 45 | + "path": "", |
| 46 | + "extension": "js", |
| 47 | + "parent": "test_component_LUXeXe0DQrg", |
| 48 | + "ctxKind": "eventHandler", |
| 49 | + "ctxName": "onHi$", |
| 50 | + "captures": false, |
| 51 | + "loc": [ |
| 52 | + 111, |
| 53 | + 121 |
| 54 | + ] |
| 55 | +} |
| 56 | +*/ |
| 57 | +============================= test.tsx_test_component_p_onConst_WVa6OMq4yIM.js (ENTRY POINT)== |
| 58 | + |
| 59 | +export const test_component_p_onConst_WVa6OMq4yIM = ()=>'const'; |
| 60 | + |
| 61 | + |
| 62 | +Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\"oDASY,IAAM\"}") |
| 63 | +/* |
| 64 | +{ |
| 65 | + "origin": "test.tsx", |
| 66 | + "name": "test_component_p_onConst_WVa6OMq4yIM", |
| 67 | + "entry": null, |
| 68 | + "displayName": "test.tsx_test_component_p_onConst", |
| 69 | + "hash": "WVa6OMq4yIM", |
| 70 | + "canonicalFilename": "test.tsx_test_component_p_onConst_WVa6OMq4yIM", |
| 71 | + "path": "", |
| 72 | + "extension": "js", |
| 73 | + "parent": "test_component_LUXeXe0DQrg", |
| 74 | + "ctxKind": "eventHandler", |
| 75 | + "ctxName": "onConst$", |
| 76 | + "captures": false, |
| 77 | + "loc": [ |
| 78 | + 239, |
| 79 | + 252 |
| 80 | + ] |
| 81 | +} |
| 82 | +*/ |
| 83 | +============================= test.tsx_test_component_LUXeXe0DQrg.js (ENTRY POINT)== |
| 84 | + |
| 85 | +import { _jsxSplit } from "@qwik.dev/core"; |
| 86 | +import { qrl } from "@qwik.dev/core"; |
| 87 | +export const test_component_LUXeXe0DQrg = (props)=>{ |
| 88 | + return /*#__PURE__*/ _jsxSplit("p", { |
| 89 | + onHi$: /*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_p_onHi_MzKNRhr770k"), "test_component_p_onHi_MzKNRhr770k"), |
| 90 | + ...props.foo, |
| 91 | + onHello$: props.helloHandler$, |
| 92 | + ...props.rest, |
| 93 | + onVar$: props.onVarHandler$ |
| 94 | + }, { |
| 95 | + onConst$: /*#__PURE__*/ qrl(()=>import("./test.tsx_test_component_p_onConst_WVa6OMq4yIM"), "test_component_p_onConst_WVa6OMq4yIM"), |
| 96 | + asd: "1" |
| 97 | + }, null, 0, "u6_0"); |
| 98 | +}; |
| 99 | + |
| 100 | + |
| 101 | +Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;0CAE0B,CAAC;IACzB,qBAAQ,UAAC;QACT,KAAK;QACJ,GAAG,MAAM,GAAG;QACb,UAAU,MAAM,aAAa;QAC5B,GAAG,MAAM,IAAI;QACd,QAAQ,MAAM,aAAa;;QAC3B,QAAQ;QACR,KAAK;;AAEP\"}") |
| 102 | +/* |
| 103 | +{ |
| 104 | + "origin": "test.tsx", |
| 105 | + "name": "test_component_LUXeXe0DQrg", |
| 106 | + "entry": null, |
| 107 | + "displayName": "test.tsx_test_component", |
| 108 | + "hash": "LUXeXe0DQrg", |
| 109 | + "canonicalFilename": "test.tsx_test_component_LUXeXe0DQrg", |
| 110 | + "path": "", |
| 111 | + "extension": "js", |
| 112 | + "parent": null, |
| 113 | + "ctxKind": "function", |
| 114 | + "ctxName": "component$", |
| 115 | + "captures": false, |
| 116 | + "loc": [ |
| 117 | + 75, |
| 118 | + 274 |
| 119 | + ] |
| 120 | +} |
| 121 | +*/ |
| 122 | +== DIAGNOSTICS == |
| 123 | + |
| 124 | +[] |
0 commit comments