@vue/compiler-sfc 3.4.2 → 3.4.3
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.
- package/dist/compiler-sfc.cjs.js +23 -12
- package/dist/compiler-sfc.d.ts +1 -1
- package/dist/compiler-sfc.esm-browser.js +22 -12
- package/package.json +5 -5
package/dist/compiler-sfc.cjs.js
CHANGED
|
@@ -1804,21 +1804,32 @@ function extractIdentifiers(ids, node) {
|
|
|
1804
1804
|
|
|
1805
1805
|
const DEFAULT_FILENAME = "anonymous.vue";
|
|
1806
1806
|
const parseCache$1 = createCache();
|
|
1807
|
-
function
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1807
|
+
function genCacheKey(source, options) {
|
|
1808
|
+
var _a;
|
|
1809
|
+
return source + JSON.stringify(
|
|
1810
|
+
{
|
|
1811
|
+
...options,
|
|
1812
|
+
compiler: { parse: (_a = options.compiler) == null ? void 0 : _a.parse }
|
|
1813
|
+
},
|
|
1814
|
+
(_, val) => typeof val === "function" ? val.toString() : val
|
|
1815
|
+
);
|
|
1816
|
+
}
|
|
1817
|
+
function parse$2(source, options = {}) {
|
|
1818
|
+
const sourceKey = genCacheKey(source, options);
|
|
1818
1819
|
const cache = parseCache$1.get(sourceKey);
|
|
1819
1820
|
if (cache) {
|
|
1820
1821
|
return cache;
|
|
1821
1822
|
}
|
|
1823
|
+
const {
|
|
1824
|
+
sourceMap = true,
|
|
1825
|
+
filename = DEFAULT_FILENAME,
|
|
1826
|
+
sourceRoot = "",
|
|
1827
|
+
pad = false,
|
|
1828
|
+
ignoreEmpty = true,
|
|
1829
|
+
compiler = CompilerDOM__namespace,
|
|
1830
|
+
templateParseOptions = {},
|
|
1831
|
+
parseExpressions = true
|
|
1832
|
+
} = options;
|
|
1822
1833
|
const descriptor = {
|
|
1823
1834
|
filename,
|
|
1824
1835
|
source,
|
|
@@ -20582,7 +20593,7 @@ function isStaticNode(node) {
|
|
|
20582
20593
|
return false;
|
|
20583
20594
|
}
|
|
20584
20595
|
|
|
20585
|
-
const version = "3.4.
|
|
20596
|
+
const version = "3.4.3";
|
|
20586
20597
|
const parseCache = parseCache$1;
|
|
20587
20598
|
const errorMessages = {
|
|
20588
20599
|
...CompilerDOM.errorMessages,
|
package/dist/compiler-sfc.d.ts
CHANGED
|
@@ -226,7 +226,7 @@ export interface SFCParseResult {
|
|
|
226
226
|
descriptor: SFCDescriptor;
|
|
227
227
|
errors: (CompilerError | SyntaxError)[];
|
|
228
228
|
}
|
|
229
|
-
export declare function parse(source: string,
|
|
229
|
+
export declare function parse(source: string, options?: SFCParseOptions): SFCParseResult;
|
|
230
230
|
|
|
231
231
|
type PreprocessLang = 'less' | 'sass' | 'scss' | 'styl' | 'stylus';
|
|
232
232
|
|
|
@@ -26654,21 +26654,31 @@ var __spreadValues$a = (a, b) => {
|
|
|
26654
26654
|
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
26655
26655
|
const DEFAULT_FILENAME = "anonymous.vue";
|
|
26656
26656
|
const parseCache$1 = createCache();
|
|
26657
|
-
function
|
|
26658
|
-
|
|
26659
|
-
|
|
26660
|
-
|
|
26661
|
-
|
|
26662
|
-
|
|
26663
|
-
|
|
26664
|
-
|
|
26665
|
-
|
|
26666
|
-
|
|
26667
|
-
const sourceKey = source
|
|
26657
|
+
function genCacheKey(source, options) {
|
|
26658
|
+
var _a;
|
|
26659
|
+
return source + JSON.stringify(
|
|
26660
|
+
__spreadProps$9(__spreadValues$a({}, options), {
|
|
26661
|
+
compiler: { parse: (_a = options.compiler) == null ? void 0 : _a.parse }
|
|
26662
|
+
}),
|
|
26663
|
+
(_, val) => typeof val === "function" ? val.toString() : val
|
|
26664
|
+
);
|
|
26665
|
+
}
|
|
26666
|
+
function parse$7(source, options = {}) {
|
|
26667
|
+
const sourceKey = genCacheKey(source, options);
|
|
26668
26668
|
const cache = parseCache$1.get(sourceKey);
|
|
26669
26669
|
if (cache) {
|
|
26670
26670
|
return cache;
|
|
26671
26671
|
}
|
|
26672
|
+
const {
|
|
26673
|
+
sourceMap = true,
|
|
26674
|
+
filename = DEFAULT_FILENAME,
|
|
26675
|
+
sourceRoot = "",
|
|
26676
|
+
pad = false,
|
|
26677
|
+
ignoreEmpty = true,
|
|
26678
|
+
compiler = CompilerDOM,
|
|
26679
|
+
templateParseOptions = {},
|
|
26680
|
+
parseExpressions = true
|
|
26681
|
+
} = options;
|
|
26672
26682
|
const descriptor = {
|
|
26673
26683
|
filename,
|
|
26674
26684
|
source,
|
|
@@ -48602,7 +48612,7 @@ var __spreadValues = (a, b) => {
|
|
|
48602
48612
|
}
|
|
48603
48613
|
return a;
|
|
48604
48614
|
};
|
|
48605
|
-
const version = "3.4.
|
|
48615
|
+
const version = "3.4.3";
|
|
48606
48616
|
const parseCache = parseCache$1;
|
|
48607
48617
|
const errorMessages = __spreadValues(__spreadValues({}, errorMessages$1), DOMErrorMessages);
|
|
48608
48618
|
const walk = walk$2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-sfc",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.3",
|
|
4
4
|
"description": "@vue/compiler-sfc",
|
|
5
5
|
"main": "dist/compiler-sfc.cjs.js",
|
|
6
6
|
"module": "dist/compiler-sfc.esm-browser.js",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"magic-string": "^0.30.5",
|
|
38
38
|
"postcss": "^8.4.32",
|
|
39
39
|
"source-map-js": "^1.0.2",
|
|
40
|
-
"@vue/compiler-
|
|
41
|
-
"@vue/
|
|
42
|
-
"@vue/compiler-
|
|
43
|
-
"@vue/
|
|
40
|
+
"@vue/compiler-core": "3.4.3",
|
|
41
|
+
"@vue/compiler-ssr": "3.4.3",
|
|
42
|
+
"@vue/compiler-dom": "3.4.3",
|
|
43
|
+
"@vue/shared": "3.4.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@babel/types": "^7.23.6",
|