@vue/compiler-core 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.
|
@@ -1909,13 +1909,12 @@ function generate(ast, options = {}) {
|
|
|
1909
1909
|
const signature = options.isTS
|
|
1910
1910
|
? args.map(arg => `${arg}: any`).join(',')
|
|
1911
1911
|
: args.join(', ');
|
|
1912
|
-
if (genScopeId) {
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
}
|
|
1912
|
+
if (genScopeId && !isSetupInlined) {
|
|
1913
|
+
// root-level _withId wrapping is no longer necessary after 3.0.8 and is
|
|
1914
|
+
// a noop, it's only kept so that code compiled with 3.0.8+ can run with
|
|
1915
|
+
// runtime < 3.0.8.
|
|
1916
|
+
// TODO: consider removing in 3.1
|
|
1917
|
+
push(`const ${functionName} = ${PURE_ANNOTATION}${WITH_ID}(`);
|
|
1919
1918
|
}
|
|
1920
1919
|
if (isSetupInlined || genScopeId) {
|
|
1921
1920
|
push(`(${signature}) => {`);
|
|
@@ -1976,7 +1975,7 @@ function generate(ast, options = {}) {
|
|
|
1976
1975
|
}
|
|
1977
1976
|
deindent();
|
|
1978
1977
|
push(`}`);
|
|
1979
|
-
if (genScopeId) {
|
|
1978
|
+
if (genScopeId && !isSetupInlined) {
|
|
1980
1979
|
push(`)`);
|
|
1981
1980
|
}
|
|
1982
1981
|
return {
|
|
@@ -2073,6 +2072,7 @@ function genModulePreamble(ast, context, genScopeId, inline) {
|
|
|
2073
2072
|
}
|
|
2074
2073
|
// we technically don't need this anymore since `withCtx` already sets the
|
|
2075
2074
|
// correct scopeId, but this is necessary for backwards compat
|
|
2075
|
+
// TODO: consider removing in 3.1
|
|
2076
2076
|
if (genScopeId) {
|
|
2077
2077
|
push(`const ${WITH_ID} = ${PURE_ANNOTATION}${helper(WITH_SCOPE_ID)}("${scopeId}")`);
|
|
2078
2078
|
newline();
|
|
@@ -1893,13 +1893,12 @@ function generate(ast, options = {}) {
|
|
|
1893
1893
|
const signature = options.isTS
|
|
1894
1894
|
? args.map(arg => `${arg}: any`).join(',')
|
|
1895
1895
|
: args.join(', ');
|
|
1896
|
-
if (genScopeId) {
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
}
|
|
1896
|
+
if (genScopeId && !isSetupInlined) {
|
|
1897
|
+
// root-level _withId wrapping is no longer necessary after 3.0.8 and is
|
|
1898
|
+
// a noop, it's only kept so that code compiled with 3.0.8+ can run with
|
|
1899
|
+
// runtime < 3.0.8.
|
|
1900
|
+
// TODO: consider removing in 3.1
|
|
1901
|
+
push(`const ${functionName} = ${PURE_ANNOTATION}${WITH_ID}(`);
|
|
1903
1902
|
}
|
|
1904
1903
|
if (isSetupInlined || genScopeId) {
|
|
1905
1904
|
push(`(${signature}) => {`);
|
|
@@ -1960,7 +1959,7 @@ function generate(ast, options = {}) {
|
|
|
1960
1959
|
}
|
|
1961
1960
|
deindent();
|
|
1962
1961
|
push(`}`);
|
|
1963
|
-
if (genScopeId) {
|
|
1962
|
+
if (genScopeId && !isSetupInlined) {
|
|
1964
1963
|
push(`)`);
|
|
1965
1964
|
}
|
|
1966
1965
|
return {
|
|
@@ -2057,6 +2056,7 @@ function genModulePreamble(ast, context, genScopeId, inline) {
|
|
|
2057
2056
|
}
|
|
2058
2057
|
// we technically don't need this anymore since `withCtx` already sets the
|
|
2059
2058
|
// correct scopeId, but this is necessary for backwards compat
|
|
2059
|
+
// TODO: consider removing in 3.1
|
|
2060
2060
|
if (genScopeId) {
|
|
2061
2061
|
push(`const ${WITH_ID} = ${PURE_ANNOTATION}${helper(WITH_SCOPE_ID)}("${scopeId}")`);
|
|
2062
2062
|
newline();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.11",
|
|
4
4
|
"description": "@vue/compiler-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/compiler-core.esm-bundler.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/vuejs/vue-next/tree/master/packages/compiler-core#readme",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@vue/shared": "3.0.
|
|
34
|
+
"@vue/shared": "3.0.11",
|
|
35
35
|
"@babel/parser": "^7.12.0",
|
|
36
36
|
"@babel/types": "^7.12.0",
|
|
37
37
|
"estree-walker": "^2.0.1",
|