Skip to content

Commit b1cb559

Browse files
committed
Make the check more dynamic for vue
1 parent be5106a commit b1cb559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/src/sandbox/compile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ function getDependencies(parsedPackage, templateDefinition, configurations) {
245245
return; // is replaced
246246
}
247247

248-
if (usedDep === '@vue/babel-preset-app' && d[dep] === '^3.4.0') {
248+
if (usedDep === '@vue/babel-preset-app' && d[dep].startsWith('^3')) {
249249
// Native modules got added in 3.7.0, we need to hardcode to latest
250250
// working version of the babel plugin as a fix. https://twitter.com/notphanan/status/1122475053633941509
251251
returnedDependencies[usedDep] = '3.6.0';

0 commit comments

Comments
 (0)