11// Vitest Snapshot v1
22
3- exports [` fixtures > tests/fixtures/basic.vue 1` ]= `
3+ exports [` fixtures > tests/fixtures/basic.vue> isProduction is false 1` ]= `
44"import{ defineComponent ,renderSlot } from 'vue';
55
66var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -35,7 +35,42 @@ export { basic as default };
3535"
3636` ;
3737
38- exports [` fixtures > tests/fixtures/defaults-dynamic.vue 1` ]= `
38+ exports [` fixtures > tests/fixtures/basic.vue > isProduction is true 1` ]= `
39+ "import{ defineComponent ,renderSlot } from 'vue';
40+
41+ var _sfc_main = /* @__PURE__ */ defineComponent({
42+ __name : \\" basic\\ " ,
43+ props : {
44+ base:null ,
45+ str:null ,
46+ num:null ,
47+ map:null ,
48+ arr:null ,
49+ union:null
50+ },
51+ emits : [\\" click\\ " , \\" change\\ " ],
52+ setup (__props ) {
53+ return (_ctx ,_cache ) => {
54+ return renderSlot (_ctx .$slots , \\" default\\ " );
55+ };
56+ }
57+ } );
58+
59+ var _export_sfc = (sfc, props) =>{
60+ const target = sfc .__vccOpts || sfc ;
61+ for (const [key ,val ]of props ) {
62+ target[key] = val;
63+ }
64+ return target ;
65+ } ;
66+
67+ var basic = /* @__PURE__ */ _export_sfc(_sfc_main, [__FILE__]);
68+
69+ export{ basic as default } ;
70+ "
71+ ` ;
72+
73+ exports [` fixtures > tests/fixtures/defaults-dynamic.vue > isProduction is false 1` ]= `
3974"import{ defineComponent ,mergeDefaults ,openBlock ,createElementBlock } from 'vue';
4075
4176var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -66,7 +101,38 @@ export { defaultsDynamic as default };
66101"
67102` ;
68103
69- exports [` fixtures > tests/fixtures/defaults-static.vue 1` ]= `
104+ exports [` fixtures > tests/fixtures/defaults-dynamic.vue > isProduction is true 1` ]= `
105+ "import{ defineComponent ,mergeDefaults ,openBlock ,createElementBlock } from 'vue';
106+
107+ var _sfc_main = /* @__PURE__ */ defineComponent({
108+ __name : \\" defaults-dynamic\\ " ,
109+ props :mergeDefaults ({
110+ foo:null
111+ }, {
112+ [\\" foo\\ " ]: \\" foo\\ "
113+ }),
114+ setup (__props ) {
115+ return (_ctx ,_cache ) => {
116+ return openBlock (),createElementBlock (\\" div\\ " );
117+ };
118+ }
119+ } );
120+
121+ var _export_sfc = (sfc, props) =>{
122+ const target = sfc .__vccOpts || sfc ;
123+ for (const [key ,val ]of props ) {
124+ target[key] = val;
125+ }
126+ return target ;
127+ } ;
128+
129+ var defaultsDynamic = /* @__PURE__ */ _export_sfc(_sfc_main, [__FILE__]);
130+
131+ export{ defaultsDynamic as default } ;
132+ "
133+ ` ;
134+
135+ exports [` fixtures > tests/fixtures/defaults-static.vue > isProduction is false 1` ]= `
70136"import{ defineComponent ,openBlock ,createElementBlock } from 'vue';
71137
72138var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -78,7 +144,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
78144 } },
79145 baz: { type:Promise , required:false ,async default() {
80146return 10 ;
81- } }
147+ } },
148+ qux: { type:Function , required:false ,default : ()=> {
149+ } },
150+ quux: { type:null , required:false , default:abc }
82151 },
83152setup (__props ) {
84153 return (_ctx ,_cache ) => {
@@ -101,7 +170,105 @@ export { defaultsStatic as default };
101170"
102171` ;
103172
104- exports [` fixtures > tests/fixtures/intersection.vue 1` ]= `
173+ exports [` fixtures > tests/fixtures/defaults-static.vue > isProduction is true 1` ]= `
174+ "import{ defineComponent ,openBlock ,createElementBlock } from 'vue';
175+
176+ var _sfc_main = /* @__PURE__ */ defineComponent({
177+ __name : \\" defaults-static\\ " ,
178+ props : {
179+ foo: { default: \\" foo\\ " },
180+ bar: {get default() {
181+ return 10 ;
182+ } },
183+ baz: {async default() {
184+ return 10 ;
185+ } },
186+ qux: { type:Function ,default : ()=> {
187+ } },
188+ quux: { default:abc }
189+ },
190+ setup (__props ) {
191+ return (_ctx ,_cache ) => {
192+ return openBlock (),createElementBlock (\\" div\\ " );
193+ };
194+ }
195+ } );
196+
197+ var _export_sfc = (sfc, props) =>{
198+ const target = sfc .__vccOpts || sfc ;
199+ for (const [key ,val ]of props ) {
200+ target[key] = val;
201+ }
202+ return target ;
203+ } ;
204+
205+ var defaultsStatic = /* @__PURE__ */ _export_sfc(_sfc_main, [__FILE__]);
206+
207+ export{ defaultsStatic as default } ;
208+ "
209+ ` ;
210+
211+ exports [` fixtures > tests/fixtures/fn-default.vue > isProduction is false 1` ]= `
212+ "import{ defineComponent } from 'vue';
213+
214+ var _sfc_main = /* @__PURE__ */ defineComponent({
215+ __name : \\" fn-default\\ " ,
216+ props : {
217+ fn: { type:Function , required:true ,default : ()=> {
218+ } }
219+ },
220+ setup (__props ) {
221+ const props = __props;
222+ return () => {
223+ };
224+ }
225+ } );
226+
227+ var _export_sfc = (sfc, props) =>{
228+ const target = sfc .__vccOpts || sfc ;
229+ for (const [key ,val ]of props ) {
230+ target[key] = val;
231+ }
232+ return target ;
233+ } ;
234+
235+ var fnDefault = /* @__PURE__ */ _export_sfc(_sfc_main, [__FILE__]);
236+
237+ export{ fnDefault as default } ;
238+ "
239+ ` ;
240+
241+ exports [` fixtures > tests/fixtures/fn-default.vue > isProduction is true 1` ]= `
242+ "import{ defineComponent } from 'vue';
243+
244+ var _sfc_main = /* @__PURE__ */ defineComponent({
245+ __name : \\" fn-default\\ " ,
246+ props : {
247+ fn: { type:Function ,default : ()=> {
248+ } }
249+ },
250+ setup (__props ) {
251+ const props = __props;
252+ return () => {
253+ };
254+ }
255+ } );
256+
257+ var _export_sfc = (sfc, props) =>{
258+ const target = sfc .__vccOpts || sfc ;
259+ for (const [key ,val ]of props ) {
260+ target[key] = val;
261+ }
262+ return target ;
263+ } ;
264+
265+ var fnDefault = /* @__PURE__ */ _export_sfc(_sfc_main, [__FILE__]);
266+
267+ export{ fnDefault as default } ;
268+ "
269+ ` ;
270+
271+ exports [` fixtures > tests/fixtures/intersection.vue > isProduction is false 1` ]= `
105272"import{ defineComponent ,renderSlot } from 'vue';
106273
107274var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -134,3 +301,37 @@ var intersection = /* @__PURE__ */ _export_sfc(_sfc_main, [__FILE__]);
134301export{ intersection as default } ;
135302"
136303` ;
304+
305+ exports [` fixtures > tests/fixtures/intersection.vue > isProduction is true 1` ]= `
306+ "import{ defineComponent ,renderSlot } from 'vue';
307+
308+ var _sfc_main = /* @__PURE__ */ defineComponent({
309+ __name : \\" intersection\\ " ,
310+ props : {
311+ base:null ,
312+ str:null ,
313+ num:null ,
314+ map:null ,
315+ arr:null ,
316+ union:null
317+ },
318+ setup (__props ) {
319+ return (_ctx ,_cache ) => {
320+ return renderSlot (_ctx .$slots , \\" default\\ " );
321+ };
322+ }
323+ } );
324+
325+ var _export_sfc = (sfc, props) =>{
326+ const target = sfc .__vccOpts || sfc ;
327+ for (const [key ,val ]of props ) {
328+ target[key] = val;
329+ }
330+ return target ;
331+ } ;
332+
333+ var intersection = /* @__PURE__ */ _export_sfc(_sfc_main, [__FILE__]);
334+
335+ export{ intersection as default } ;
336+ "
337+ ` ;