|
1 | 1 | // Vitest Snapshot v1
|
2 | 2 |
|
3 | 3 | exports[`fixture > transform 1`] = `
|
4 |
| -"import * as __vite_glob_1_0 from \\"./modules/a.ts\\" |
5 |
| -import * as __vite_glob_1_1 from \\"./modules/b.ts\\" |
6 |
| -import * as __vite_glob_1_2 from \\"./modules/index.ts\\" |
7 |
| -import { name as __vite_glob_3_0 } from \\"./modules/a.ts\\" |
8 |
| -import { name as __vite_glob_3_1 } from \\"./modules/b.ts\\" |
9 |
| -import { name as __vite_glob_3_2 } from \\"./modules/index.ts\\" |
10 |
| -import { default as __vite_glob_5_0 } from \\"./modules/a.ts?raw\\" |
11 |
| -import { default as __vite_glob_5_1 } from \\"./modules/b.ts?raw\\" |
12 |
| -import \\"../../../../../../types/importMeta\\"; |
13 |
| -export const basic = Object.assign({ |
14 |
| -\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"), |
15 |
| -\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\"), |
16 |
| -\\"./modules/index.ts\\": () => import(\\"./modules/index.ts\\") |
17 |
| -}); |
18 |
| -export const basicEager = Object.assign({ |
19 |
| -\\"./modules/a.ts\\": __vite_glob_1_0, |
20 |
| -\\"./modules/b.ts\\": __vite_glob_1_1, |
21 |
| -\\"./modules/index.ts\\": __vite_glob_1_2 |
22 |
| -}); |
23 |
| -export const ignore = Object.assign({ |
24 |
| -\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"), |
25 |
| -\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\") |
26 |
| -}); |
27 |
| -export const namedEager = Object.assign({ |
28 |
| -\\"./modules/a.ts\\": __vite_glob_3_0, |
29 |
| -\\"./modules/b.ts\\": __vite_glob_3_1, |
30 |
| -\\"./modules/index.ts\\": __vite_glob_3_2 |
31 |
| -}); |
32 |
| -export const namedDefault = Object.assign({ |
33 |
| -\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\").then(m => m[\\"default\\"]), |
34 |
| -\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\").then(m => m[\\"default\\"]), |
35 |
| -\\"./modules/index.ts\\": () => import(\\"./modules/index.ts\\").then(m => m[\\"default\\"]) |
36 |
| -}); |
37 |
| -export const eagerAs = Object.assign({ |
38 |
| -\\"./modules/a.ts\\": __vite_glob_5_0, |
39 |
| -\\"./modules/b.ts\\": __vite_glob_5_1 |
40 |
| -}); |
41 |
| -export const rawImportModule = Object.assign({ |
42 |
| -\\"./modules/a.ts\\": () => import(\\"./modules/a.ts?raw\\"), |
43 |
| -\\"./modules/b.ts\\": () => import(\\"./modules/b.ts?raw\\") |
44 |
| -}); |
45 |
| -export const excludeSelf = Object.assign({ |
46 |
| -\\"./sibling.ts\\": () => import(\\"./sibling.ts\\") |
47 |
| -}); |
48 |
| -export const customQueryString = Object.assign({ |
49 |
| -\\"./sibling.ts\\": () => import(\\"./sibling.ts?custom\\") |
50 |
| -}); |
51 |
| -export const customQueryObject = Object.assign({ |
52 |
| -\\"./sibling.ts\\": () => import(\\"./sibling.ts?foo=bar&raw=true\\") |
53 |
| -}); |
54 |
| -export const parent = Object.assign({ |
55 |
| -
|
56 |
| -}); |
57 |
| -export const rootMixedRelative = Object.assign({ |
58 |
| -\\"/css.spec.ts\\": () => import(\\"../../css.spec.ts?url\\").then(m => m[\\"default\\"]), |
59 |
| -\\"/define.spec.ts\\": () => import(\\"../../define.spec.ts?url\\").then(m => m[\\"default\\"]), |
60 |
| -\\"/esbuild.spec.ts\\": () => import(\\"../../esbuild.spec.ts?url\\").then(m => m[\\"default\\"]), |
61 |
| -\\"/import.spec.ts\\": () => import(\\"../../import.spec.ts?url\\").then(m => m[\\"default\\"]), |
62 |
| -\\"/importGlob/fixture-b/a.ts\\": () => import(\\"../fixture-b/a.ts?url\\").then(m => m[\\"default\\"]), |
63 |
| -\\"/importGlob/fixture-b/b.ts\\": () => import(\\"../fixture-b/b.ts?url\\").then(m => m[\\"default\\"]), |
64 |
| -\\"/importGlob/fixture-b/index.ts\\": () => import(\\"../fixture-b/index.ts?url\\").then(m => m[\\"default\\"]) |
65 |
| -}); |
66 |
| -export const cleverCwd1 = Object.assign({ |
67 |
| -\\"./node_modules/framework/pages/hello.page.js\\": () => import(\\"./node_modules/framework/pages/hello.page.js\\") |
68 |
| -}); |
69 |
| -export const cleverCwd2 = Object.assign({ |
70 |
| -\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"), |
71 |
| -\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\"), |
72 |
| -\\"../fixture-b/a.ts\\": () => import(\\"../fixture-b/a.ts\\"), |
73 |
| -\\"../fixture-b/b.ts\\": () => import(\\"../fixture-b/b.ts\\") |
74 |
| -}); |
| 4 | +"import * as __vite_glob_1_0 from \\"./modules/a.ts\\";import * as __vite_glob_1_1 from \\"./modules/b.ts\\";import * as __vite_glob_1_2 from \\"./modules/index.ts\\";import { name as __vite_glob_3_0 } from \\"./modules/a.ts\\";import { name as __vite_glob_3_1 } from \\"./modules/b.ts\\";import { name as __vite_glob_3_2 } from \\"./modules/index.ts\\";import { default as __vite_glob_5_0 } from \\"./modules/a.ts?raw\\";import { default as __vite_glob_5_1 } from \\"./modules/b.ts?raw\\";import \\"../../../../../../types/importMeta\\"; |
| 5 | +export const basic = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\"),\\"./modules/index.ts\\": () => import(\\"./modules/index.ts\\")}); |
| 6 | +export const basicEager = Object.assign({\\"./modules/a.ts\\": __vite_glob_1_0,\\"./modules/b.ts\\": __vite_glob_1_1,\\"./modules/index.ts\\": __vite_glob_1_2}); |
| 7 | +export const ignore = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\")}); |
| 8 | +export const namedEager = Object.assign({\\"./modules/a.ts\\": __vite_glob_3_0,\\"./modules/b.ts\\": __vite_glob_3_1,\\"./modules/index.ts\\": __vite_glob_3_2}); |
| 9 | +export const namedDefault = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\").then(m => m[\\"default\\"]),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\").then(m => m[\\"default\\"]),\\"./modules/index.ts\\": () => import(\\"./modules/index.ts\\").then(m => m[\\"default\\"])}); |
| 10 | +export const eagerAs = Object.assign({\\"./modules/a.ts\\": __vite_glob_5_0,\\"./modules/b.ts\\": __vite_glob_5_1}); |
| 11 | +export const rawImportModule = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts?raw\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts?raw\\")}); |
| 12 | +export const excludeSelf = Object.assign({\\"./sibling.ts\\": () => import(\\"./sibling.ts\\")}); |
| 13 | +export const customQueryString = Object.assign({\\"./sibling.ts\\": () => import(\\"./sibling.ts?custom\\")}); |
| 14 | +export const customQueryObject = Object.assign({\\"./sibling.ts\\": () => import(\\"./sibling.ts?foo=bar&raw=true\\")}); |
| 15 | +export const parent = Object.assign({}); |
| 16 | +export const rootMixedRelative = Object.assign({\\"/css.spec.ts\\": () => import(\\"../../css.spec.ts?url\\").then(m => m[\\"default\\"]),\\"/define.spec.ts\\": () => import(\\"../../define.spec.ts?url\\").then(m => m[\\"default\\"]),\\"/esbuild.spec.ts\\": () => import(\\"../../esbuild.spec.ts?url\\").then(m => m[\\"default\\"]),\\"/import.spec.ts\\": () => import(\\"../../import.spec.ts?url\\").then(m => m[\\"default\\"]),\\"/importGlob/fixture-b/a.ts\\": () => import(\\"../fixture-b/a.ts?url\\").then(m => m[\\"default\\"]),\\"/importGlob/fixture-b/b.ts\\": () => import(\\"../fixture-b/b.ts?url\\").then(m => m[\\"default\\"]),\\"/importGlob/fixture-b/index.ts\\": () => import(\\"../fixture-b/index.ts?url\\").then(m => m[\\"default\\"])}); |
| 17 | +export const cleverCwd1 = Object.assign({\\"./node_modules/framework/pages/hello.page.js\\": () => import(\\"./node_modules/framework/pages/hello.page.js\\")}); |
| 18 | +export const cleverCwd2 = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\"),\\"../fixture-b/a.ts\\": () => import(\\"../fixture-b/a.ts\\"),\\"../fixture-b/b.ts\\": () => import(\\"../fixture-b/b.ts\\")}); |
75 | 19 | "
|
76 | 20 | `;
|
77 | 21 |
|
78 | 22 | exports[`fixture > transform with restoreQueryExtension 1`] = `
|
79 |
| -"import * as __vite_glob_1_0 from \\"./modules/a.ts\\" |
80 |
| -import * as __vite_glob_1_1 from \\"./modules/b.ts\\" |
81 |
| -import * as __vite_glob_1_2 from \\"./modules/index.ts\\" |
82 |
| -import { name as __vite_glob_3_0 } from \\"./modules/a.ts\\" |
83 |
| -import { name as __vite_glob_3_1 } from \\"./modules/b.ts\\" |
84 |
| -import { name as __vite_glob_3_2 } from \\"./modules/index.ts\\" |
85 |
| -import { default as __vite_glob_5_0 } from \\"./modules/a.ts?raw\\" |
86 |
| -import { default as __vite_glob_5_1 } from \\"./modules/b.ts?raw\\" |
87 |
| -import \\"../../../../../../types/importMeta\\"; |
88 |
| -export const basic = Object.assign({ |
89 |
| -\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"), |
90 |
| -\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\"), |
91 |
| -\\"./modules/index.ts\\": () => import(\\"./modules/index.ts\\") |
92 |
| -}); |
93 |
| -export const basicEager = Object.assign({ |
94 |
| -\\"./modules/a.ts\\": __vite_glob_1_0, |
95 |
| -\\"./modules/b.ts\\": __vite_glob_1_1, |
96 |
| -\\"./modules/index.ts\\": __vite_glob_1_2 |
97 |
| -}); |
98 |
| -export const ignore = Object.assign({ |
99 |
| -\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"), |
100 |
| -\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\") |
101 |
| -}); |
102 |
| -export const namedEager = Object.assign({ |
103 |
| -\\"./modules/a.ts\\": __vite_glob_3_0, |
104 |
| -\\"./modules/b.ts\\": __vite_glob_3_1, |
105 |
| -\\"./modules/index.ts\\": __vite_glob_3_2 |
106 |
| -}); |
107 |
| -export const namedDefault = Object.assign({ |
108 |
| -\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\").then(m => m[\\"default\\"]), |
109 |
| -\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\").then(m => m[\\"default\\"]), |
110 |
| -\\"./modules/index.ts\\": () => import(\\"./modules/index.ts\\").then(m => m[\\"default\\"]) |
111 |
| -}); |
112 |
| -export const eagerAs = Object.assign({ |
113 |
| -\\"./modules/a.ts\\": __vite_glob_5_0, |
114 |
| -\\"./modules/b.ts\\": __vite_glob_5_1 |
115 |
| -}); |
116 |
| -export const rawImportModule = Object.assign({ |
117 |
| -\\"./modules/a.ts\\": () => import(\\"./modules/a.ts?raw\\"), |
118 |
| -\\"./modules/b.ts\\": () => import(\\"./modules/b.ts?raw\\") |
119 |
| -}); |
120 |
| -export const excludeSelf = Object.assign({ |
121 |
| -\\"./sibling.ts\\": () => import(\\"./sibling.ts\\") |
122 |
| -}); |
123 |
| -export const customQueryString = Object.assign({ |
124 |
| -\\"./sibling.ts\\": () => import(\\"./sibling.ts?custom&lang.ts\\") |
125 |
| -}); |
126 |
| -export const customQueryObject = Object.assign({ |
127 |
| -\\"./sibling.ts\\": () => import(\\"./sibling.ts?foo=bar&raw=true&lang.ts\\") |
128 |
| -}); |
129 |
| -export const parent = Object.assign({ |
130 |
| -
|
131 |
| -}); |
132 |
| -export const rootMixedRelative = Object.assign({ |
133 |
| -\\"/css.spec.ts\\": () => import(\\"../../css.spec.ts?url&lang.ts\\").then(m => m[\\"default\\"]), |
134 |
| -\\"/define.spec.ts\\": () => import(\\"../../define.spec.ts?url&lang.ts\\").then(m => m[\\"default\\"]), |
135 |
| -\\"/esbuild.spec.ts\\": () => import(\\"../../esbuild.spec.ts?url&lang.ts\\").then(m => m[\\"default\\"]), |
136 |
| -\\"/import.spec.ts\\": () => import(\\"../../import.spec.ts?url&lang.ts\\").then(m => m[\\"default\\"]), |
137 |
| -\\"/importGlob/fixture-b/a.ts\\": () => import(\\"../fixture-b/a.ts?url&lang.ts\\").then(m => m[\\"default\\"]), |
138 |
| -\\"/importGlob/fixture-b/b.ts\\": () => import(\\"../fixture-b/b.ts?url&lang.ts\\").then(m => m[\\"default\\"]), |
139 |
| -\\"/importGlob/fixture-b/index.ts\\": () => import(\\"../fixture-b/index.ts?url&lang.ts\\").then(m => m[\\"default\\"]) |
140 |
| -}); |
141 |
| -export const cleverCwd1 = Object.assign({ |
142 |
| -\\"./node_modules/framework/pages/hello.page.js\\": () => import(\\"./node_modules/framework/pages/hello.page.js\\") |
143 |
| -}); |
144 |
| -export const cleverCwd2 = Object.assign({ |
145 |
| -\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"), |
146 |
| -\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\"), |
147 |
| -\\"../fixture-b/a.ts\\": () => import(\\"../fixture-b/a.ts\\"), |
148 |
| -\\"../fixture-b/b.ts\\": () => import(\\"../fixture-b/b.ts\\") |
149 |
| -}); |
| 23 | +"import * as __vite_glob_1_0 from \\"./modules/a.ts\\";import * as __vite_glob_1_1 from \\"./modules/b.ts\\";import * as __vite_glob_1_2 from \\"./modules/index.ts\\";import { name as __vite_glob_3_0 } from \\"./modules/a.ts\\";import { name as __vite_glob_3_1 } from \\"./modules/b.ts\\";import { name as __vite_glob_3_2 } from \\"./modules/index.ts\\";import { default as __vite_glob_5_0 } from \\"./modules/a.ts?raw\\";import { default as __vite_glob_5_1 } from \\"./modules/b.ts?raw\\";import \\"../../../../../../types/importMeta\\"; |
| 24 | +export const basic = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\"),\\"./modules/index.ts\\": () => import(\\"./modules/index.ts\\")}); |
| 25 | +export const basicEager = Object.assign({\\"./modules/a.ts\\": __vite_glob_1_0,\\"./modules/b.ts\\": __vite_glob_1_1,\\"./modules/index.ts\\": __vite_glob_1_2}); |
| 26 | +export const ignore = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\")}); |
| 27 | +export const namedEager = Object.assign({\\"./modules/a.ts\\": __vite_glob_3_0,\\"./modules/b.ts\\": __vite_glob_3_1,\\"./modules/index.ts\\": __vite_glob_3_2}); |
| 28 | +export const namedDefault = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\").then(m => m[\\"default\\"]),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\").then(m => m[\\"default\\"]),\\"./modules/index.ts\\": () => import(\\"./modules/index.ts\\").then(m => m[\\"default\\"])}); |
| 29 | +export const eagerAs = Object.assign({\\"./modules/a.ts\\": __vite_glob_5_0,\\"./modules/b.ts\\": __vite_glob_5_1}); |
| 30 | +export const rawImportModule = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts?raw\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts?raw\\")}); |
| 31 | +export const excludeSelf = Object.assign({\\"./sibling.ts\\": () => import(\\"./sibling.ts\\")}); |
| 32 | +export const customQueryString = Object.assign({\\"./sibling.ts\\": () => import(\\"./sibling.ts?custom&lang.ts\\")}); |
| 33 | +export const customQueryObject = Object.assign({\\"./sibling.ts\\": () => import(\\"./sibling.ts?foo=bar&raw=true&lang.ts\\")}); |
| 34 | +export const parent = Object.assign({}); |
| 35 | +export const rootMixedRelative = Object.assign({\\"/css.spec.ts\\": () => import(\\"../../css.spec.ts?url&lang.ts\\").then(m => m[\\"default\\"]),\\"/define.spec.ts\\": () => import(\\"../../define.spec.ts?url&lang.ts\\").then(m => m[\\"default\\"]),\\"/esbuild.spec.ts\\": () => import(\\"../../esbuild.spec.ts?url&lang.ts\\").then(m => m[\\"default\\"]),\\"/import.spec.ts\\": () => import(\\"../../import.spec.ts?url&lang.ts\\").then(m => m[\\"default\\"]),\\"/importGlob/fixture-b/a.ts\\": () => import(\\"../fixture-b/a.ts?url&lang.ts\\").then(m => m[\\"default\\"]),\\"/importGlob/fixture-b/b.ts\\": () => import(\\"../fixture-b/b.ts?url&lang.ts\\").then(m => m[\\"default\\"]),\\"/importGlob/fixture-b/index.ts\\": () => import(\\"../fixture-b/index.ts?url&lang.ts\\").then(m => m[\\"default\\"])}); |
| 36 | +export const cleverCwd1 = Object.assign({\\"./node_modules/framework/pages/hello.page.js\\": () => import(\\"./node_modules/framework/pages/hello.page.js\\")}); |
| 37 | +export const cleverCwd2 = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\"),\\"../fixture-b/a.ts\\": () => import(\\"../fixture-b/a.ts\\"),\\"../fixture-b/b.ts\\": () => import(\\"../fixture-b/b.ts\\")}); |
150 | 38 | "
|
151 | 39 | `;
|
152 | 40 |
|
153 | 41 | exports[`fixture > virtual modules 1`] = `
|
154 |
| -"Object.assign({ |
155 |
| -\\"/modules/a.ts\\": () => import(\\"/modules/a.ts\\"), |
156 |
| -\\"/modules/b.ts\\": () => import(\\"/modules/b.ts\\"), |
157 |
| -\\"/modules/index.ts\\": () => import(\\"/modules/index.ts\\") |
158 |
| -}) |
159 |
| -Object.assign({ |
160 |
| -\\"/../fixture-b/a.ts\\": () => import(\\"/../fixture-b/a.ts\\"), |
161 |
| -\\"/../fixture-b/b.ts\\": () => import(\\"/../fixture-b/b.ts\\"), |
162 |
| -\\"/../fixture-b/index.ts\\": () => import(\\"/../fixture-b/index.ts\\") |
163 |
| -})" |
| 42 | +"Object.assign({\\"/modules/a.ts\\": () => import(\\"/modules/a.ts\\"),\\"/modules/b.ts\\": () => import(\\"/modules/b.ts\\"),\\"/modules/index.ts\\": () => import(\\"/modules/index.ts\\")}) |
| 43 | +Object.assign({\\"/../fixture-b/a.ts\\": () => import(\\"/../fixture-b/a.ts\\"),\\"/../fixture-b/b.ts\\": () => import(\\"/../fixture-b/b.ts\\"),\\"/../fixture-b/index.ts\\": () => import(\\"/../fixture-b/index.ts\\")})" |
164 | 44 | `;
|
0 commit comments