We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 021f8f3 commit de7959eCopy full SHA for de7959e
packages-private/sfc-playground/src/download/download.ts
@@ -17,7 +17,10 @@ export async function downloadProject(store: ReplStore) {
17
18
// basic structure
19
zip.file('index.html', index)
20
- zip.file('package.json', pkg)
+ zip.file(
21
+ 'package.json',
22
+ pkg.replace(`"vue": "latest"`, `"vue": "${store.vueVersion || 'latest'}"`),
23
+ )
24
zip.file('vite.config.js', config)
25
zip.file('README.md', readme)
26
packages-private/sfc-playground/src/download/template/package.json
@@ -8,7 +8,7 @@
8
"serve": "vite preview"
9
},
10
"dependencies": {
11
- "vue": "^3.4.0"
+ "vue": "latest"
12
13
"devDependencies": {
14
"@vitejs/plugin-vue": "^5.2.2",
0 commit comments