@vue/compiler-sfc 3.5.12 → 3.5.13
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 +3892 -415
- package/dist/compiler-sfc.esm-browser.js +134 -152
- package/package.json +8 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-sfc v3.5.
|
|
2
|
+
* @vue/compiler-sfc v3.5.13
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -173,10 +173,9 @@ function parseStringStyle(cssText) {
|
|
|
173
173
|
return ret;
|
|
174
174
|
}
|
|
175
175
|
function stringifyStyle(styles) {
|
|
176
|
+
if (!styles) return "";
|
|
177
|
+
if (isString$1(styles)) return styles;
|
|
176
178
|
let ret = "";
|
|
177
|
-
if (!styles || isString$1(styles)) {
|
|
178
|
-
return ret;
|
|
179
|
-
}
|
|
180
179
|
for (const key in styles) {
|
|
181
180
|
const value = styles[key];
|
|
182
181
|
if (isString$1(value) || typeof value === "number") {
|
|
@@ -660,12 +659,13 @@ function createConditionalExpression(test, consequent, alternate, newline = true
|
|
|
660
659
|
loc: locStub
|
|
661
660
|
};
|
|
662
661
|
}
|
|
663
|
-
function createCacheExpression(index, value, needPauseTracking = false) {
|
|
662
|
+
function createCacheExpression(index, value, needPauseTracking = false, inVOnce = false) {
|
|
664
663
|
return {
|
|
665
664
|
type: 20,
|
|
666
665
|
index,
|
|
667
666
|
value,
|
|
668
667
|
needPauseTracking,
|
|
668
|
+
inVOnce,
|
|
669
669
|
needArraySpread: false,
|
|
670
670
|
loc: locStub
|
|
671
671
|
};
|
|
@@ -18437,11 +18437,12 @@ function createTransformContext(root, {
|
|
|
18437
18437
|
identifier.hoisted = exp;
|
|
18438
18438
|
return identifier;
|
|
18439
18439
|
},
|
|
18440
|
-
cache(exp, isVNode = false) {
|
|
18440
|
+
cache(exp, isVNode = false, inVOnce = false) {
|
|
18441
18441
|
const cacheExp = createCacheExpression(
|
|
18442
18442
|
context.cached.length,
|
|
18443
18443
|
exp,
|
|
18444
|
-
isVNode
|
|
18444
|
+
isVNode,
|
|
18445
|
+
inVOnce
|
|
18445
18446
|
);
|
|
18446
18447
|
context.cached.push(cacheExp);
|
|
18447
18448
|
return cacheExp;
|
|
@@ -22702,7 +22703,9 @@ function genCacheExpression(node, context) {
|
|
|
22702
22703
|
push(`_cache[${node.index}] || (`);
|
|
22703
22704
|
if (needPauseTracking) {
|
|
22704
22705
|
indent();
|
|
22705
|
-
push(`${helper(SET_BLOCK_TRACKING)}(-1)
|
|
22706
|
+
push(`${helper(SET_BLOCK_TRACKING)}(-1`);
|
|
22707
|
+
if (node.inVOnce) push(`, true`);
|
|
22708
|
+
push(`),`);
|
|
22706
22709
|
newline();
|
|
22707
22710
|
push(`(`);
|
|
22708
22711
|
}
|
|
@@ -22790,12 +22793,14 @@ const transformExpression = (node, context) => {
|
|
|
22790
22793
|
context
|
|
22791
22794
|
);
|
|
22792
22795
|
} else if (node.type === 1) {
|
|
22796
|
+
const memo = findDir(node, "memo");
|
|
22793
22797
|
for (let i = 0; i < node.props.length; i++) {
|
|
22794
22798
|
const dir = node.props[i];
|
|
22795
22799
|
if (dir.type === 7 && dir.name !== "for") {
|
|
22796
22800
|
const exp = dir.exp;
|
|
22797
22801
|
const arg = dir.arg;
|
|
22798
|
-
if (exp && exp.type === 4 && !(dir.name === "on" && arg))
|
|
22802
|
+
if (exp && exp.type === 4 && !(dir.name === "on" && arg) && // key has been processed in transformFor(vMemo + vFor)
|
|
22803
|
+
!(memo && arg && arg.type === 4 && arg.content === "key")) {
|
|
22799
22804
|
dir.exp = processExpression(
|
|
22800
22805
|
exp,
|
|
22801
22806
|
context,
|
|
@@ -23320,10 +23325,19 @@ const transformFor = createStructuralDirectiveTransform(
|
|
|
23320
23325
|
const isTemplate = isTemplateNode(node);
|
|
23321
23326
|
const memo = findDir(node, "memo");
|
|
23322
23327
|
const keyProp = findProp(node, `key`, false, true);
|
|
23323
|
-
|
|
23328
|
+
const isDirKey = keyProp && keyProp.type === 7;
|
|
23329
|
+
if (isDirKey && !keyProp.exp) {
|
|
23324
23330
|
transformBindShorthand(keyProp, context);
|
|
23325
23331
|
}
|
|
23326
|
-
|
|
23332
|
+
let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
|
|
23333
|
+
if (memo && keyExp && isDirKey) {
|
|
23334
|
+
{
|
|
23335
|
+
keyProp.exp = keyExp = processExpression(
|
|
23336
|
+
keyExp,
|
|
23337
|
+
context
|
|
23338
|
+
);
|
|
23339
|
+
}
|
|
23340
|
+
}
|
|
23327
23341
|
const keyProperty = keyProp && keyExp ? createObjectProperty(`key`, keyExp) : null;
|
|
23328
23342
|
if (isTemplate) {
|
|
23329
23343
|
if (memo) {
|
|
@@ -24673,8 +24687,8 @@ const transformOnce = (node, context) => {
|
|
|
24673
24687
|
if (cur.codegenNode) {
|
|
24674
24688
|
cur.codegenNode = context.cache(
|
|
24675
24689
|
cur.codegenNode,
|
|
24690
|
+
true,
|
|
24676
24691
|
true
|
|
24677
|
-
/* isVNode */
|
|
24678
24692
|
);
|
|
24679
24693
|
}
|
|
24680
24694
|
};
|
|
@@ -31499,24 +31513,27 @@ const ssrTransformElement = (node, context) => {
|
|
|
31499
31513
|
];
|
|
31500
31514
|
}
|
|
31501
31515
|
} else if (directives.length && !node.children.length) {
|
|
31502
|
-
const
|
|
31503
|
-
|
|
31504
|
-
|
|
31505
|
-
|
|
31506
|
-
|
|
31507
|
-
|
|
31508
|
-
|
|
31509
|
-
|
|
31510
|
-
|
|
31511
|
-
|
|
31512
|
-
|
|
31513
|
-
|
|
31514
|
-
createSimpleExpression(
|
|
31515
|
-
|
|
31516
|
-
|
|
31517
|
-
|
|
31518
|
-
|
|
31519
|
-
|
|
31516
|
+
const vText = findDir(node, "text");
|
|
31517
|
+
if (!vText) {
|
|
31518
|
+
const tempId = `_temp${context.temps++}`;
|
|
31519
|
+
propsExp.arguments = [
|
|
31520
|
+
createAssignmentExpression(
|
|
31521
|
+
createSimpleExpression(tempId, false),
|
|
31522
|
+
mergedProps
|
|
31523
|
+
)
|
|
31524
|
+
];
|
|
31525
|
+
rawChildrenMap.set(
|
|
31526
|
+
node,
|
|
31527
|
+
createConditionalExpression(
|
|
31528
|
+
createSimpleExpression(`"textContent" in ${tempId}`, false),
|
|
31529
|
+
createCallExpression(context.helper(SSR_INTERPOLATE), [
|
|
31530
|
+
createSimpleExpression(`${tempId}.textContent`, false)
|
|
31531
|
+
]),
|
|
31532
|
+
createSimpleExpression(`${tempId}.innerHTML ?? ''`, false),
|
|
31533
|
+
false
|
|
31534
|
+
)
|
|
31535
|
+
);
|
|
31536
|
+
}
|
|
31520
31537
|
}
|
|
31521
31538
|
if (needTagForRuntime) {
|
|
31522
31539
|
propsExp.arguments.push(`"${node.tag}"`);
|
|
@@ -32344,11 +32361,18 @@ const ssrTransformModel = (dir, node, context) => {
|
|
|
32344
32361
|
checkDuplicatedValue();
|
|
32345
32362
|
node.children = [createInterpolation(model, model.loc)];
|
|
32346
32363
|
} else if (node.tag === "select") {
|
|
32347
|
-
|
|
32348
|
-
|
|
32349
|
-
|
|
32350
|
-
|
|
32351
|
-
|
|
32364
|
+
const processChildren = (children) => {
|
|
32365
|
+
children.forEach((child) => {
|
|
32366
|
+
if (child.type === 1) {
|
|
32367
|
+
processOption(child);
|
|
32368
|
+
} else if (child.type === 11) {
|
|
32369
|
+
processChildren(child.children);
|
|
32370
|
+
} else if (child.type === 9) {
|
|
32371
|
+
child.branches.forEach((b) => processChildren(b.children));
|
|
32372
|
+
}
|
|
32373
|
+
});
|
|
32374
|
+
};
|
|
32375
|
+
processChildren(node.children);
|
|
32352
32376
|
} else {
|
|
32353
32377
|
context.onError(
|
|
32354
32378
|
createDOMCompilerError(
|
|
@@ -32558,10 +32582,6 @@ var CompilerSSR = /*#__PURE__*/Object.freeze({
|
|
|
32558
32582
|
compile: compile
|
|
32559
32583
|
});
|
|
32560
32584
|
|
|
32561
|
-
function commonjsRequire(path) {
|
|
32562
|
-
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
32563
|
-
}
|
|
32564
|
-
|
|
32565
32585
|
var _polyfillNode_fs = {};
|
|
32566
32586
|
|
|
32567
32587
|
var _polyfillNode_fs$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -32569,11 +32589,11 @@ var _polyfillNode_fs$1 = /*#__PURE__*/Object.freeze({
|
|
|
32569
32589
|
default: _polyfillNode_fs
|
|
32570
32590
|
});
|
|
32571
32591
|
|
|
32572
|
-
var require$$0$
|
|
32592
|
+
var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_fs$1);
|
|
32573
32593
|
|
|
32574
32594
|
var require$$1 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_path);
|
|
32575
32595
|
|
|
32576
|
-
var require$$0
|
|
32596
|
+
var require$$0 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_util$1);
|
|
32577
32597
|
|
|
32578
32598
|
const hasWarned = {};
|
|
32579
32599
|
function warnOnce$1(msg) {
|
|
@@ -32817,65 +32837,24 @@ function patchErrors(errors, source, inMap) {
|
|
|
32817
32837
|
|
|
32818
32838
|
var picocolors = {exports: {}};
|
|
32819
32839
|
|
|
32820
|
-
// MIT lisence
|
|
32821
|
-
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
32822
|
-
|
|
32823
|
-
function isatty() {
|
|
32824
|
-
return false;
|
|
32825
|
-
}
|
|
32826
|
-
|
|
32827
|
-
function ReadStream() {
|
|
32828
|
-
throw new Error('tty.ReadStream is not implemented');
|
|
32829
|
-
}
|
|
32830
|
-
|
|
32831
|
-
function WriteStream() {
|
|
32832
|
-
throw new Error('tty.ReadStream is not implemented');
|
|
32833
|
-
}
|
|
32834
|
-
|
|
32835
|
-
var _polyfillNode_tty = {
|
|
32836
|
-
isatty: isatty,
|
|
32837
|
-
ReadStream: ReadStream,
|
|
32838
|
-
WriteStream: WriteStream
|
|
32839
|
-
};
|
|
32840
|
-
|
|
32841
|
-
var _polyfillNode_tty$1 = /*#__PURE__*/Object.freeze({
|
|
32842
|
-
__proto__: null,
|
|
32843
|
-
ReadStream: ReadStream,
|
|
32844
|
-
WriteStream: WriteStream,
|
|
32845
|
-
default: _polyfillNode_tty,
|
|
32846
|
-
isatty: isatty
|
|
32847
|
-
});
|
|
32848
|
-
|
|
32849
|
-
var require$$0 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_tty$1);
|
|
32850
|
-
|
|
32851
32840
|
var hasRequiredPicocolors;
|
|
32852
32841
|
|
|
32853
32842
|
function requirePicocolors () {
|
|
32854
32843
|
if (hasRequiredPicocolors) return picocolors.exports;
|
|
32855
32844
|
hasRequiredPicocolors = 1;
|
|
32856
|
-
let
|
|
32857
|
-
env = ({});
|
|
32845
|
+
let p = browser$1 || {}, argv = p.argv || [], env = p.env || {};
|
|
32858
32846
|
let isColorSupported =
|
|
32859
|
-
!(
|
|
32860
|
-
(
|
|
32861
|
-
|
|
32862
|
-
|
|
32863
|
-
(commonjsRequire != null && require$$0.isatty(1) && env.TERM !== "dumb") ||
|
|
32864
|
-
"CI" in env);
|
|
32865
|
-
|
|
32866
|
-
let formatter =
|
|
32867
|
-
(open, close, replace = open) =>
|
|
32847
|
+
!(!!env.NO_COLOR || argv.includes("--no-color")) &&
|
|
32848
|
+
(!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || ((p.stdout || {}).isTTY && env.TERM !== "dumb") || !!env.CI);
|
|
32849
|
+
|
|
32850
|
+
let formatter = (open, close, replace = open) =>
|
|
32868
32851
|
input => {
|
|
32869
|
-
let string = "" + input;
|
|
32870
|
-
|
|
32871
|
-
return ~index
|
|
32872
|
-
? open + replaceClose(string, close, replace, index) + close
|
|
32873
|
-
: open + string + close
|
|
32852
|
+
let string = "" + input, index = string.indexOf(close, open.length);
|
|
32853
|
+
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close
|
|
32874
32854
|
};
|
|
32875
32855
|
|
|
32876
32856
|
let replaceClose = (string, close, replace, index) => {
|
|
32877
|
-
let result = "";
|
|
32878
|
-
let cursor = 0;
|
|
32857
|
+
let result = "", cursor = 0;
|
|
32879
32858
|
do {
|
|
32880
32859
|
result += string.substring(cursor, index) + replace;
|
|
32881
32860
|
cursor = index + close.length;
|
|
@@ -32885,54 +32864,54 @@ function requirePicocolors () {
|
|
|
32885
32864
|
};
|
|
32886
32865
|
|
|
32887
32866
|
let createColors = (enabled = isColorSupported) => {
|
|
32888
|
-
let
|
|
32867
|
+
let f = enabled ? formatter : () => String;
|
|
32889
32868
|
return {
|
|
32890
32869
|
isColorSupported: enabled,
|
|
32891
|
-
reset:
|
|
32892
|
-
bold:
|
|
32893
|
-
dim:
|
|
32894
|
-
italic:
|
|
32895
|
-
underline:
|
|
32896
|
-
inverse:
|
|
32897
|
-
hidden:
|
|
32898
|
-
strikethrough:
|
|
32899
|
-
|
|
32900
|
-
black:
|
|
32901
|
-
red:
|
|
32902
|
-
green:
|
|
32903
|
-
yellow:
|
|
32904
|
-
blue:
|
|
32905
|
-
magenta:
|
|
32906
|
-
cyan:
|
|
32907
|
-
white:
|
|
32908
|
-
gray:
|
|
32909
|
-
|
|
32910
|
-
bgBlack:
|
|
32911
|
-
bgRed:
|
|
32912
|
-
bgGreen:
|
|
32913
|
-
bgYellow:
|
|
32914
|
-
bgBlue:
|
|
32915
|
-
bgMagenta:
|
|
32916
|
-
bgCyan:
|
|
32917
|
-
bgWhite:
|
|
32918
|
-
|
|
32919
|
-
blackBright:
|
|
32920
|
-
redBright:
|
|
32921
|
-
greenBright:
|
|
32922
|
-
yellowBright:
|
|
32923
|
-
blueBright:
|
|
32924
|
-
magentaBright:
|
|
32925
|
-
cyanBright:
|
|
32926
|
-
whiteBright:
|
|
32927
|
-
|
|
32928
|
-
bgBlackBright:
|
|
32929
|
-
bgRedBright:
|
|
32930
|
-
bgGreenBright:
|
|
32931
|
-
bgYellowBright:
|
|
32932
|
-
bgBlueBright:
|
|
32933
|
-
bgMagentaBright:
|
|
32934
|
-
bgCyanBright:
|
|
32935
|
-
bgWhiteBright:
|
|
32870
|
+
reset: f("\x1b[0m", "\x1b[0m"),
|
|
32871
|
+
bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
|
|
32872
|
+
dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
|
|
32873
|
+
italic: f("\x1b[3m", "\x1b[23m"),
|
|
32874
|
+
underline: f("\x1b[4m", "\x1b[24m"),
|
|
32875
|
+
inverse: f("\x1b[7m", "\x1b[27m"),
|
|
32876
|
+
hidden: f("\x1b[8m", "\x1b[28m"),
|
|
32877
|
+
strikethrough: f("\x1b[9m", "\x1b[29m"),
|
|
32878
|
+
|
|
32879
|
+
black: f("\x1b[30m", "\x1b[39m"),
|
|
32880
|
+
red: f("\x1b[31m", "\x1b[39m"),
|
|
32881
|
+
green: f("\x1b[32m", "\x1b[39m"),
|
|
32882
|
+
yellow: f("\x1b[33m", "\x1b[39m"),
|
|
32883
|
+
blue: f("\x1b[34m", "\x1b[39m"),
|
|
32884
|
+
magenta: f("\x1b[35m", "\x1b[39m"),
|
|
32885
|
+
cyan: f("\x1b[36m", "\x1b[39m"),
|
|
32886
|
+
white: f("\x1b[37m", "\x1b[39m"),
|
|
32887
|
+
gray: f("\x1b[90m", "\x1b[39m"),
|
|
32888
|
+
|
|
32889
|
+
bgBlack: f("\x1b[40m", "\x1b[49m"),
|
|
32890
|
+
bgRed: f("\x1b[41m", "\x1b[49m"),
|
|
32891
|
+
bgGreen: f("\x1b[42m", "\x1b[49m"),
|
|
32892
|
+
bgYellow: f("\x1b[43m", "\x1b[49m"),
|
|
32893
|
+
bgBlue: f("\x1b[44m", "\x1b[49m"),
|
|
32894
|
+
bgMagenta: f("\x1b[45m", "\x1b[49m"),
|
|
32895
|
+
bgCyan: f("\x1b[46m", "\x1b[49m"),
|
|
32896
|
+
bgWhite: f("\x1b[47m", "\x1b[49m"),
|
|
32897
|
+
|
|
32898
|
+
blackBright: f("\x1b[90m", "\x1b[39m"),
|
|
32899
|
+
redBright: f("\x1b[91m", "\x1b[39m"),
|
|
32900
|
+
greenBright: f("\x1b[92m", "\x1b[39m"),
|
|
32901
|
+
yellowBright: f("\x1b[93m", "\x1b[39m"),
|
|
32902
|
+
blueBright: f("\x1b[94m", "\x1b[39m"),
|
|
32903
|
+
magentaBright: f("\x1b[95m", "\x1b[39m"),
|
|
32904
|
+
cyanBright: f("\x1b[96m", "\x1b[39m"),
|
|
32905
|
+
whiteBright: f("\x1b[97m", "\x1b[39m"),
|
|
32906
|
+
|
|
32907
|
+
bgBlackBright: f("\x1b[100m", "\x1b[49m"),
|
|
32908
|
+
bgRedBright: f("\x1b[101m", "\x1b[49m"),
|
|
32909
|
+
bgGreenBright: f("\x1b[102m", "\x1b[49m"),
|
|
32910
|
+
bgYellowBright: f("\x1b[103m", "\x1b[49m"),
|
|
32911
|
+
bgBlueBright: f("\x1b[104m", "\x1b[49m"),
|
|
32912
|
+
bgMagentaBright: f("\x1b[105m", "\x1b[49m"),
|
|
32913
|
+
bgCyanBright: f("\x1b[106m", "\x1b[49m"),
|
|
32914
|
+
bgWhiteBright: f("\x1b[107m", "\x1b[49m"),
|
|
32936
32915
|
}
|
|
32937
32916
|
};
|
|
32938
32917
|
|
|
@@ -34012,22 +33991,23 @@ function requireNode$2 () {
|
|
|
34012
33991
|
positionBy(opts, stringRepresentation) {
|
|
34013
33992
|
let pos = this.source.start;
|
|
34014
33993
|
if (opts.index) {
|
|
34015
|
-
pos = this.positionInside(opts.index
|
|
33994
|
+
pos = this.positionInside(opts.index);
|
|
34016
33995
|
} else if (opts.word) {
|
|
34017
|
-
stringRepresentation = this.
|
|
33996
|
+
stringRepresentation = this.source.input.css.slice(this.source.start.offset, this.source.end.offset);
|
|
34018
33997
|
let index = stringRepresentation.indexOf(opts.word);
|
|
34019
|
-
if (index !== -1) pos = this.positionInside(index
|
|
33998
|
+
if (index !== -1) pos = this.positionInside(index);
|
|
34020
33999
|
}
|
|
34021
34000
|
return pos
|
|
34022
34001
|
}
|
|
34023
34002
|
|
|
34024
|
-
positionInside(index
|
|
34025
|
-
let string = stringRepresentation || this.toString();
|
|
34003
|
+
positionInside(index) {
|
|
34026
34004
|
let column = this.source.start.column;
|
|
34027
34005
|
let line = this.source.start.line;
|
|
34006
|
+
let offset = this.source.start.offset;
|
|
34007
|
+
let end = offset + index;
|
|
34028
34008
|
|
|
34029
|
-
for (let i =
|
|
34030
|
-
if (
|
|
34009
|
+
for (let i = offset; i < end; i++) {
|
|
34010
|
+
if (this.source.input.css[i] === '\n') {
|
|
34031
34011
|
column = 1;
|
|
34032
34012
|
line += 1;
|
|
34033
34013
|
} else {
|
|
@@ -34060,7 +34040,7 @@ function requireNode$2 () {
|
|
|
34060
34040
|
};
|
|
34061
34041
|
|
|
34062
34042
|
if (opts.word) {
|
|
34063
|
-
let stringRepresentation = this.
|
|
34043
|
+
let stringRepresentation = this.source.input.css.slice(this.source.start.offset, this.source.end.offset);
|
|
34064
34044
|
let index = stringRepresentation.indexOf(opts.word);
|
|
34065
34045
|
if (index !== -1) {
|
|
34066
34046
|
start = this.positionInside(index, stringRepresentation);
|
|
@@ -38267,7 +38247,7 @@ function requirePreviousMap () {
|
|
|
38267
38247
|
if (hasRequiredPreviousMap) return previousMap;
|
|
38268
38248
|
hasRequiredPreviousMap = 1;
|
|
38269
38249
|
|
|
38270
|
-
let { existsSync, readFileSync } = require$$0$
|
|
38250
|
+
let { existsSync, readFileSync } = require$$0$1;
|
|
38271
38251
|
let { dirname, join } = require$$1;
|
|
38272
38252
|
let { SourceMapConsumer, SourceMapGenerator } = /*@__PURE__*/ requireSourceMap$1();
|
|
38273
38253
|
|
|
@@ -40778,7 +40758,7 @@ function requireProcessor$1 () {
|
|
|
40778
40758
|
|
|
40779
40759
|
class Processor {
|
|
40780
40760
|
constructor(plugins = []) {
|
|
40781
|
-
this.version = '8.4.
|
|
40761
|
+
this.version = '8.4.48';
|
|
40782
40762
|
this.plugins = this.normalize(plugins);
|
|
40783
40763
|
}
|
|
40784
40764
|
|
|
@@ -41481,6 +41461,9 @@ function requireContainer () {
|
|
|
41481
41461
|
_proto.prepend = function prepend(selector) {
|
|
41482
41462
|
selector.parent = this;
|
|
41483
41463
|
this.nodes.unshift(selector);
|
|
41464
|
+
for (var id in this.indexes) {
|
|
41465
|
+
this.indexes[id]++;
|
|
41466
|
+
}
|
|
41484
41467
|
return this;
|
|
41485
41468
|
};
|
|
41486
41469
|
_proto.at = function at(index) {
|
|
@@ -41524,7 +41507,7 @@ function requireContainer () {
|
|
|
41524
41507
|
var index;
|
|
41525
41508
|
for (var id in this.indexes) {
|
|
41526
41509
|
index = this.indexes[id];
|
|
41527
|
-
if (oldIndex
|
|
41510
|
+
if (oldIndex < index) {
|
|
41528
41511
|
this.indexes[id] = index + 1;
|
|
41529
41512
|
}
|
|
41530
41513
|
}
|
|
@@ -41538,7 +41521,7 @@ function requireContainer () {
|
|
|
41538
41521
|
var index;
|
|
41539
41522
|
for (var id in this.indexes) {
|
|
41540
41523
|
index = this.indexes[id];
|
|
41541
|
-
if (index
|
|
41524
|
+
if (index >= oldIndex) {
|
|
41542
41525
|
this.indexes[id] = index + 1;
|
|
41543
41526
|
}
|
|
41544
41527
|
}
|
|
@@ -42293,7 +42276,7 @@ function requireNode () {
|
|
|
42293
42276
|
* For Node.js, simply re-export the core `util.deprecate` function.
|
|
42294
42277
|
*/
|
|
42295
42278
|
|
|
42296
|
-
node = require$$0
|
|
42279
|
+
node = require$$0.deprecate;
|
|
42297
42280
|
return node;
|
|
42298
42281
|
}
|
|
42299
42282
|
|
|
@@ -44725,8 +44708,7 @@ function rewriteSelector(id, rule, selector, selectorRoot, deep, slotted = false
|
|
|
44725
44708
|
return false;
|
|
44726
44709
|
}
|
|
44727
44710
|
if (value === ":global" || value === "::v-global") {
|
|
44728
|
-
|
|
44729
|
-
selectorRoot.removeChild(selector);
|
|
44711
|
+
selector.replaceWith(n.nodes[0]);
|
|
44730
44712
|
return false;
|
|
44731
44713
|
}
|
|
44732
44714
|
}
|
|
@@ -53051,7 +53033,7 @@ var __spreadValues = (a, b) => {
|
|
|
53051
53033
|
}
|
|
53052
53034
|
return a;
|
|
53053
53035
|
};
|
|
53054
|
-
const version = "3.5.
|
|
53036
|
+
const version = "3.5.13";
|
|
53055
53037
|
const parseCache = parseCache$1;
|
|
53056
53038
|
const errorMessages = __spreadValues(__spreadValues({}, errorMessages$1), DOMErrorMessages);
|
|
53057
53039
|
const walk = walk$2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-sfc",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.13",
|
|
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.25.3",
|
|
46
46
|
"estree-walker": "^2.0.2",
|
|
47
47
|
"magic-string": "^0.30.11",
|
|
48
|
-
"postcss": "^8.4.
|
|
48
|
+
"postcss": "^8.4.48",
|
|
49
49
|
"source-map-js": "^1.2.0",
|
|
50
|
-
"@vue/compiler-core": "3.5.
|
|
51
|
-
"@vue/
|
|
52
|
-
"@vue/
|
|
53
|
-
"@vue/compiler-
|
|
50
|
+
"@vue/compiler-core": "3.5.13",
|
|
51
|
+
"@vue/shared": "3.5.13",
|
|
52
|
+
"@vue/compiler-dom": "3.5.13",
|
|
53
|
+
"@vue/compiler-ssr": "3.5.13"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@babel/types": "^7.25.2",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"merge-source-map": "^1.1.0",
|
|
61
61
|
"minimatch": "~9.0.5",
|
|
62
62
|
"postcss-modules": "^6.0.0",
|
|
63
|
-
"postcss-selector-parser": "^
|
|
63
|
+
"postcss-selector-parser": "^7.0.0",
|
|
64
64
|
"pug": "^3.0.3",
|
|
65
|
-
"sass": "^1.
|
|
65
|
+
"sass": "^1.80.6"
|
|
66
66
|
}
|
|
67
67
|
}
|