@lwc/ssr-compiler 8.13.0 → 8.13.1
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/index.cjs.js +9 -3
- package/dist/index.js +9 -3
- package/package.json +5 -5
package/dist/index.cjs.js
CHANGED
|
@@ -742,7 +742,7 @@ const bGenerateMarkup = (esTemplate `
|
|
|
742
742
|
const __lwcPublicProperties__ = new Set(${ /*public properties*/estreeToolkit.is.arrayExpression}.concat(__lwcSuperPublicProperties__));
|
|
743
743
|
const __lwcPrivateProperties__ = new Set(${ /*private properties*/estreeToolkit.is.arrayExpression});
|
|
744
744
|
|
|
745
|
-
async function* generateMarkup(
|
|
745
|
+
${ /* component class */0}[__SYMBOL__GENERATE_MARKUP] = async function* generateMarkup(
|
|
746
746
|
tagName,
|
|
747
747
|
props,
|
|
748
748
|
attrs,
|
|
@@ -797,7 +797,6 @@ const bGenerateMarkup = (esTemplate `
|
|
|
797
797
|
);
|
|
798
798
|
yield \`</\${tagName}>\`;
|
|
799
799
|
}
|
|
800
|
-
${ /* component class */0}[__SYMBOL__GENERATE_MARKUP] = generateMarkup;
|
|
801
800
|
${ /* component class */0}.__lwcPublicProperties__ = __lwcPublicProperties__;
|
|
802
801
|
`);
|
|
803
802
|
const bExposeTemplate = (esTemplate `
|
|
@@ -1085,6 +1084,13 @@ const visitors = {
|
|
|
1085
1084
|
}
|
|
1086
1085
|
},
|
|
1087
1086
|
},
|
|
1087
|
+
Identifier(path, _state) {
|
|
1088
|
+
const { node } = path;
|
|
1089
|
+
if (node?.name.startsWith('__lwc') && node.name.endsWith('__')) {
|
|
1090
|
+
// TODO [#5032]: Harmonize errors thrown in `@lwc/ssr-compiler`
|
|
1091
|
+
throw new Error(`LWCTODO: identifier name '${node.name}' cannot start with '__lwc'`);
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
1088
1094
|
};
|
|
1089
1095
|
function validateUniqueDecorator(decorators) {
|
|
1090
1096
|
if (decorators.length < 2) {
|
|
@@ -2453,5 +2459,5 @@ function compileTemplateForSSR(src, filename, options, mode = shared.DEFAULT_SSR
|
|
|
2453
2459
|
|
|
2454
2460
|
exports.compileComponentForSSR = compileComponentForSSR;
|
|
2455
2461
|
exports.compileTemplateForSSR = compileTemplateForSSR;
|
|
2456
|
-
/** version: 8.13.
|
|
2462
|
+
/** version: 8.13.1 */
|
|
2457
2463
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.js
CHANGED
|
@@ -738,7 +738,7 @@ const bGenerateMarkup = (esTemplate `
|
|
|
738
738
|
const __lwcPublicProperties__ = new Set(${ /*public properties*/is.arrayExpression}.concat(__lwcSuperPublicProperties__));
|
|
739
739
|
const __lwcPrivateProperties__ = new Set(${ /*private properties*/is.arrayExpression});
|
|
740
740
|
|
|
741
|
-
async function* generateMarkup(
|
|
741
|
+
${ /* component class */0}[__SYMBOL__GENERATE_MARKUP] = async function* generateMarkup(
|
|
742
742
|
tagName,
|
|
743
743
|
props,
|
|
744
744
|
attrs,
|
|
@@ -793,7 +793,6 @@ const bGenerateMarkup = (esTemplate `
|
|
|
793
793
|
);
|
|
794
794
|
yield \`</\${tagName}>\`;
|
|
795
795
|
}
|
|
796
|
-
${ /* component class */0}[__SYMBOL__GENERATE_MARKUP] = generateMarkup;
|
|
797
796
|
${ /* component class */0}.__lwcPublicProperties__ = __lwcPublicProperties__;
|
|
798
797
|
`);
|
|
799
798
|
const bExposeTemplate = (esTemplate `
|
|
@@ -1081,6 +1080,13 @@ const visitors = {
|
|
|
1081
1080
|
}
|
|
1082
1081
|
},
|
|
1083
1082
|
},
|
|
1083
|
+
Identifier(path, _state) {
|
|
1084
|
+
const { node } = path;
|
|
1085
|
+
if (node?.name.startsWith('__lwc') && node.name.endsWith('__')) {
|
|
1086
|
+
// TODO [#5032]: Harmonize errors thrown in `@lwc/ssr-compiler`
|
|
1087
|
+
throw new Error(`LWCTODO: identifier name '${node.name}' cannot start with '__lwc'`);
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1084
1090
|
};
|
|
1085
1091
|
function validateUniqueDecorator(decorators) {
|
|
1086
1092
|
if (decorators.length < 2) {
|
|
@@ -2448,5 +2454,5 @@ function compileTemplateForSSR(src, filename, options, mode = DEFAULT_SSR_MODE)
|
|
|
2448
2454
|
}
|
|
2449
2455
|
|
|
2450
2456
|
export { compileComponentForSSR, compileTemplateForSSR };
|
|
2451
|
-
/** version: 8.13.
|
|
2457
|
+
/** version: 8.13.1 */
|
|
2452
2458
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
|
|
5
5
|
],
|
|
6
6
|
"name": "@lwc/ssr-compiler",
|
|
7
|
-
"version": "8.13.
|
|
7
|
+
"version": "8.13.1",
|
|
8
8
|
"description": "Compile component for use during server-side rendering",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"compiler",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/types": "7.26.7",
|
|
52
|
-
"@lwc/shared": "8.13.
|
|
53
|
-
"@lwc/errors": "8.13.
|
|
54
|
-
"@lwc/template-compiler": "8.13.
|
|
52
|
+
"@lwc/shared": "8.13.1",
|
|
53
|
+
"@lwc/errors": "8.13.1",
|
|
54
|
+
"@lwc/template-compiler": "8.13.1",
|
|
55
55
|
"acorn": "8.14.0",
|
|
56
56
|
"astring": "^1.9.0",
|
|
57
57
|
"estree-toolkit": "^1.7.8",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"meriyah": "^5.0.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@lwc/babel-plugin-component": "8.13.
|
|
62
|
+
"@lwc/babel-plugin-component": "8.13.1",
|
|
63
63
|
"@types/estree": "^1.0.6"
|
|
64
64
|
}
|
|
65
65
|
}
|