@vue/compiler-sfc 3.0.10 → 3.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5491,13 +5491,12 @@ function generate(ast, options = {}) {
|
|
|
5491
5491
|
const signature = options.isTS
|
|
5492
5492
|
? args.map(arg => `${arg}: any`).join(',')
|
|
5493
5493
|
: args.join(', ');
|
|
5494
|
-
if (genScopeId) {
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
}
|
|
5494
|
+
if (genScopeId && !isSetupInlined) {
|
|
5495
|
+
// root-level _withId wrapping is no longer necessary after 3.0.8 and is
|
|
5496
|
+
// a noop, it's only kept so that code compiled with 3.0.8+ can run with
|
|
5497
|
+
// runtime < 3.0.8.
|
|
5498
|
+
// TODO: consider removing in 3.1
|
|
5499
|
+
push(`const ${functionName} = ${PURE_ANNOTATION}${WITH_ID}(`);
|
|
5501
5500
|
}
|
|
5502
5501
|
if (isSetupInlined || genScopeId) {
|
|
5503
5502
|
push(`(${signature}) => {`);
|
|
@@ -5558,7 +5557,7 @@ function generate(ast, options = {}) {
|
|
|
5558
5557
|
}
|
|
5559
5558
|
deindent();
|
|
5560
5559
|
push(`}`);
|
|
5561
|
-
if (genScopeId) {
|
|
5560
|
+
if (genScopeId && !isSetupInlined) {
|
|
5562
5561
|
push(`)`);
|
|
5563
5562
|
}
|
|
5564
5563
|
return {
|
|
@@ -5655,6 +5654,7 @@ function genModulePreamble(ast, context, genScopeId, inline) {
|
|
|
5655
5654
|
}
|
|
5656
5655
|
// we technically don't need this anymore since `withCtx` already sets the
|
|
5657
5656
|
// correct scopeId, but this is necessary for backwards compat
|
|
5657
|
+
// TODO: consider removing in 3.1
|
|
5658
5658
|
if (genScopeId) {
|
|
5659
5659
|
push(`const ${WITH_ID} = ${PURE_ANNOTATION}${helper(WITH_SCOPE_ID)}("${scopeId}")`);
|
|
5660
5660
|
newline();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-sfc",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.11",
|
|
4
4
|
"description": "@vue/compiler-sfc",
|
|
5
5
|
"main": "dist/compiler-sfc.cjs.js",
|
|
6
6
|
"types": "dist/compiler-sfc.d.ts",
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/vuejs/vue-next/tree/master/packages/compiler-sfc#readme",
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"vue": "3.0.
|
|
34
|
+
"vue": "3.0.11"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@babel/parser": "^7.13.9",
|
|
38
38
|
"@babel/types": "^7.13.0",
|
|
39
|
-
"@vue/compiler-core": "3.0.
|
|
40
|
-
"@vue/compiler-dom": "3.0.
|
|
41
|
-
"@vue/compiler-ssr": "3.0.
|
|
42
|
-
"@vue/shared": "3.0.
|
|
39
|
+
"@vue/compiler-core": "3.0.11",
|
|
40
|
+
"@vue/compiler-dom": "3.0.11",
|
|
41
|
+
"@vue/compiler-ssr": "3.0.11",
|
|
42
|
+
"@vue/shared": "3.0.11",
|
|
43
43
|
"consolidate": "^0.16.0",
|
|
44
44
|
"estree-walker": "^2.0.1",
|
|
45
45
|
"hash-sum": "^2.0.0",
|