Skip to content

Commit 2840c31

Browse files
Update dependency vite to v4 (#36)
* Update dependency vite to v4 * Fix tests Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Ivan Demchuk <[email protected]>
1 parent 74cf171 commit 2840c31

File tree

5 files changed

+265
-17
lines changed

5 files changed

+265
-17
lines changed
410 Bytes
Binary file not shown.
90 Bytes
Binary file not shown.

__tests__/frameworks/vite/util.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ export async function compile(options: InlineConfig, file: string): Promise<stri
2626
}
2727
},
2828
},
29+
{
30+
name: 'virtual:empty',
31+
resolveId(id) {
32+
if (id.startsWith('virtual:empty:'))
33+
return id
34+
},
35+
load(id) {
36+
if (id.startsWith('virtual:empty:'))
37+
return 'export default {}'
38+
},
39+
},
2940
],
3041
})
3142

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"release-it": "15.5.1",
8484
"tsup": "6.5.0",
8585
"typescript": "4.9.4",
86-
"vite": "3.2.5",
86+
"vite": "4.0.1",
8787
"vitest": "0.25.8",
8888
"vue": "3.2.45",
8989
"vue-loader": "17.0.1",

pnpm-lock.yaml

Lines changed: 253 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)