Skip to content

Commit 6711e86

Browse files
committed
fix: update @vue/compiler-sfc and @vue/compiler-core to version 3.5.16 and add corresponding patches
1 parent 36cc8e7 commit 6711e86

File tree

5 files changed

+85
-84
lines changed

5 files changed

+85
-84
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"@unocss/core": "^0.50.8",
6464
"@unocss/preset-uno": "^0.50.8",
6565
"@vue/babel-plugin-jsx": "^1.4.0",
66-
"@vue/compiler-sfc": "^3.5.13",
66+
"@vue/compiler-sfc": "^3.5.16",
6767
"fast-glob": "^3.3.3",
6868
"less": "^4.3.0",
6969
"less-plugin-module-resolver": "^1.0.3",

patches/@[email protected]

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
diff --git a/dist/compiler-core.cjs.js b/dist/compiler-core.cjs.js
2+
index 8251431d00b46ada29983a63593cbcec443e75b5..594f66e24692e01701219a80ff86d4fb18bb3e4e 100644
3+
--- a/dist/compiler-core.cjs.js
4+
+++ b/dist/compiler-core.cjs.js
5+
@@ -1063,7 +1063,7 @@ class Tokenizer {
6+
this.buffer = input;
7+
while (this.index < this.buffer.length) {
8+
const c = this.buffer.charCodeAt(this.index);
9+
- if (c === 10) {
10+
+ if (c === 10 && this.state !== 33) {
11+
this.newlines.push(this.index);
12+
}
13+
switch (this.state) {
14+
diff --git a/dist/compiler-core.esm-bundler.js b/dist/compiler-core.esm-bundler.js
15+
index 81447fce87543763266bba5a6d668bc7498a494e..47d6c9e31ee62e089a142276ff19d0580da67c72 100644
16+
--- a/dist/compiler-core.esm-bundler.js
17+
+++ b/dist/compiler-core.esm-bundler.js
18+
@@ -1023,7 +1023,7 @@ class Tokenizer {
19+
this.buffer = input;
20+
while (this.index < this.buffer.length) {
21+
const c = this.buffer.charCodeAt(this.index);
22+
- if (c === 10) {
23+
+ if (c === 10 && this.state !== 33) {
24+
this.newlines.push(this.index);
25+
}
26+
switch (this.state) {

patches/@[email protected]

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/dist/compiler-sfc.esm-browser.js b/dist/compiler-sfc.esm-browser.js
2+
index bcac8074be4193e3e56f1ec374e15e6e31cb9378..f23878f73144ebd14c5322bb5cfa345ab9481eb5 100644
3+
--- a/dist/compiler-sfc.esm-browser.js
4+
+++ b/dist/compiler-sfc.esm-browser.js
5+
@@ -1921,7 +1921,7 @@ class Tokenizer {
6+
this.buffer = input;
7+
while (this.index < this.buffer.length) {
8+
const c = this.buffer.charCodeAt(this.index);
9+
- if (c === 10) {
10+
+ if (c === 10 && this.state !== 33) {
11+
this.newlines.push(this.index);
12+
}
13+
switch (this.state) {

0 commit comments

Comments
 (0)