@vue/compiler-sfc 3.4.13 → 3.4.15
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-sfc v3.4.
|
|
2
|
+
* @vue/compiler-sfc v3.4.15
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -4279,6 +4279,7 @@ function doCompileTemplate({
|
|
|
4279
4279
|
}
|
|
4280
4280
|
if (inAST == null ? void 0 : inAST.transformed) {
|
|
4281
4281
|
const newAST = (ssr ? CompilerDOM__namespace : compiler).parse(inAST.source, {
|
|
4282
|
+
prefixIdentifiers: true,
|
|
4282
4283
|
...compilerOptions,
|
|
4283
4284
|
parseMode: "sfc",
|
|
4284
4285
|
onError: (e) => errors.push(e)
|
|
@@ -18366,7 +18367,8 @@ function resolveFS(ctx) {
|
|
|
18366
18367
|
file = file.replace(/\.ts$/, "");
|
|
18367
18368
|
}
|
|
18368
18369
|
return fs.readFile(file);
|
|
18369
|
-
}
|
|
18370
|
+
},
|
|
18371
|
+
realpath: fs.realpath
|
|
18370
18372
|
};
|
|
18371
18373
|
}
|
|
18372
18374
|
function resolveTypeFromImport(ctx, node, name, scope) {
|
|
@@ -18494,7 +18496,7 @@ function resolveWithTS(containingFile, source, ts2, fs) {
|
|
|
18494
18496
|
if (filename.endsWith(".vue.ts")) {
|
|
18495
18497
|
filename = filename.replace(/\.ts$/, "");
|
|
18496
18498
|
}
|
|
18497
|
-
return filename;
|
|
18499
|
+
return fs.realpath ? fs.realpath(filename) : filename;
|
|
18498
18500
|
}
|
|
18499
18501
|
}
|
|
18500
18502
|
function loadTSConfig(configPath, ts2, fs) {
|
|
@@ -20607,7 +20609,7 @@ function isStaticNode(node) {
|
|
|
20607
20609
|
return false;
|
|
20608
20610
|
}
|
|
20609
20611
|
|
|
20610
|
-
const version = "3.4.
|
|
20612
|
+
const version = "3.4.15";
|
|
20611
20613
|
const parseCache = parseCache$1;
|
|
20612
20614
|
const errorMessages = {
|
|
20613
20615
|
...CompilerDOM.errorMessages,
|
package/dist/compiler-sfc.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-sfc v3.4.
|
|
2
|
+
* @vue/compiler-sfc v3.4.15
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -32653,7 +32653,9 @@ function doCompileTemplate({
|
|
|
32653
32653
|
inAST = void 0;
|
|
32654
32654
|
}
|
|
32655
32655
|
if (inAST == null ? void 0 : inAST.transformed) {
|
|
32656
|
-
const newAST = (ssr ? CompilerDOM : compiler).parse(inAST.source, __spreadProps$5(__spreadValues$6({
|
|
32656
|
+
const newAST = (ssr ? CompilerDOM : compiler).parse(inAST.source, __spreadProps$5(__spreadValues$6({
|
|
32657
|
+
prefixIdentifiers: true
|
|
32658
|
+
}, compilerOptions), {
|
|
32657
32659
|
parseMode: "sfc",
|
|
32658
32660
|
onError: (e) => errors.push(e)
|
|
32659
32661
|
}));
|
|
@@ -34489,6 +34491,7 @@ let MapGenerator$2 = class MapGenerator {
|
|
|
34489
34491
|
this.root = root;
|
|
34490
34492
|
this.opts = opts;
|
|
34491
34493
|
this.css = cssString;
|
|
34494
|
+
this.originalCSS = cssString;
|
|
34492
34495
|
this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute;
|
|
34493
34496
|
|
|
34494
34497
|
this.memoizedFileURLs = new Map();
|
|
@@ -34547,7 +34550,7 @@ let MapGenerator$2 = class MapGenerator {
|
|
|
34547
34550
|
}
|
|
34548
34551
|
}
|
|
34549
34552
|
} else if (this.css) {
|
|
34550
|
-
this.css = this.css.replace(
|
|
34553
|
+
this.css = this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm, '');
|
|
34551
34554
|
}
|
|
34552
34555
|
}
|
|
34553
34556
|
|
|
@@ -34749,7 +34752,7 @@ let MapGenerator$2 = class MapGenerator {
|
|
|
34749
34752
|
}
|
|
34750
34753
|
});
|
|
34751
34754
|
} else {
|
|
34752
|
-
let input = new Input$3(this.
|
|
34755
|
+
let input = new Input$3(this.originalCSS, this.opts);
|
|
34753
34756
|
if (input.map) this.previousMaps.push(input.map);
|
|
34754
34757
|
}
|
|
34755
34758
|
}
|
|
@@ -36805,6 +36808,9 @@ let NoWorkResult$1 = class NoWorkResult {
|
|
|
36805
36808
|
if (generatedMap) {
|
|
36806
36809
|
this.result.map = generatedMap;
|
|
36807
36810
|
}
|
|
36811
|
+
} else {
|
|
36812
|
+
map.clearAnnotation();
|
|
36813
|
+
this.result.css = map.css;
|
|
36808
36814
|
}
|
|
36809
36815
|
}
|
|
36810
36816
|
|
|
@@ -36909,7 +36915,7 @@ let Root$2 = root$2;
|
|
|
36909
36915
|
|
|
36910
36916
|
let Processor$1 = class Processor {
|
|
36911
36917
|
constructor(plugins = []) {
|
|
36912
|
-
this.version = '8.4.
|
|
36918
|
+
this.version = '8.4.33';
|
|
36913
36919
|
this.plugins = this.normalize(plugins);
|
|
36914
36920
|
}
|
|
36915
36921
|
|
|
@@ -36945,10 +36951,10 @@ let Processor$1 = class Processor {
|
|
|
36945
36951
|
|
|
36946
36952
|
process(css, opts = {}) {
|
|
36947
36953
|
if (
|
|
36948
|
-
this.plugins.length
|
|
36949
|
-
|
|
36950
|
-
|
|
36951
|
-
|
|
36954
|
+
!this.plugins.length &&
|
|
36955
|
+
!opts.parser &&
|
|
36956
|
+
!opts.stringifier &&
|
|
36957
|
+
!opts.syntax
|
|
36952
36958
|
) {
|
|
36953
36959
|
return new NoWorkResult(this, css, opts)
|
|
36954
36960
|
} else {
|
|
@@ -46455,7 +46461,8 @@ function resolveFS(ctx) {
|
|
|
46455
46461
|
file = file.replace(/\.ts$/, "");
|
|
46456
46462
|
}
|
|
46457
46463
|
return fs.readFile(file);
|
|
46458
|
-
}
|
|
46464
|
+
},
|
|
46465
|
+
realpath: fs.realpath
|
|
46459
46466
|
};
|
|
46460
46467
|
}
|
|
46461
46468
|
function resolveTypeFromImport(ctx, node, name, scope) {
|
|
@@ -48642,7 +48649,7 @@ var __spreadValues = (a, b) => {
|
|
|
48642
48649
|
}
|
|
48643
48650
|
return a;
|
|
48644
48651
|
};
|
|
48645
|
-
const version = "3.4.
|
|
48652
|
+
const version = "3.4.15";
|
|
48646
48653
|
const parseCache = parseCache$1;
|
|
48647
48654
|
const errorMessages = __spreadValues(__spreadValues({}, errorMessages$1), DOMErrorMessages);
|
|
48648
48655
|
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.15",
|
|
4
4
|
"description": "@vue/compiler-sfc",
|
|
5
5
|
"main": "dist/compiler-sfc.cjs.js",
|
|
6
6
|
"module": "dist/compiler-sfc.esm-browser.js",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"@babel/parser": "^7.23.6",
|
|
46
46
|
"estree-walker": "^2.0.2",
|
|
47
47
|
"magic-string": "^0.30.5",
|
|
48
|
-
"postcss": "^8.4.
|
|
48
|
+
"postcss": "^8.4.33",
|
|
49
49
|
"source-map-js": "^1.0.2",
|
|
50
|
-
"@vue/compiler-core": "3.4.
|
|
51
|
-
"@vue/
|
|
52
|
-
"@vue/compiler-
|
|
53
|
-
"@vue/
|
|
50
|
+
"@vue/compiler-core": "3.4.15",
|
|
51
|
+
"@vue/shared": "3.4.15",
|
|
52
|
+
"@vue/compiler-dom": "3.4.15",
|
|
53
|
+
"@vue/compiler-ssr": "3.4.15"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@babel/types": "^7.23.6",
|