@lwc/ssr-compiler 8.22.6 → 8.24.0
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 +6 -3
- package/dist/index.js +6 -3
- package/package.json +7 -7
package/dist/index.cjs.js
CHANGED
|
@@ -986,7 +986,7 @@ const visitors = {
|
|
|
986
986
|
}
|
|
987
987
|
if (experimentalDynamicComponent.strictSpecifier) {
|
|
988
988
|
if (!estreeToolkit.is.literal(path.node?.source) || typeof path.node.source.value !== 'string') {
|
|
989
|
-
throw generateError(path.node, errors.LWCClassErrors.INVALID_DYNAMIC_IMPORT_SOURCE_STRICT);
|
|
989
|
+
throw generateError(path.node, errors.LWCClassErrors.INVALID_DYNAMIC_IMPORT_SOURCE_STRICT, estreeToolkit.is.literal(path.node?.source) ? String(path.node.source.value) : 'undefined');
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
992
|
const loader = experimentalDynamicComponent.loader;
|
|
@@ -2300,7 +2300,10 @@ function createNewContext(templateOptions) {
|
|
|
2300
2300
|
}
|
|
2301
2301
|
return false;
|
|
2302
2302
|
};
|
|
2303
|
-
|
|
2303
|
+
// Unique local variable names across block scopes, we don't care about block scope order
|
|
2304
|
+
const getLocalVars = () => [
|
|
2305
|
+
...new Set(localVarStack.flatMap((varsSet) => Array.from(varsSet))),
|
|
2306
|
+
];
|
|
2304
2307
|
const hoistedStatements = {
|
|
2305
2308
|
module: [],
|
|
2306
2309
|
templateFn: [],
|
|
@@ -2641,5 +2644,5 @@ function compileTemplateForSSR(src, filename, options, mode = shared.DEFAULT_SSR
|
|
|
2641
2644
|
|
|
2642
2645
|
exports.compileComponentForSSR = compileComponentForSSR;
|
|
2643
2646
|
exports.compileTemplateForSSR = compileTemplateForSSR;
|
|
2644
|
-
/** version: 8.
|
|
2647
|
+
/** version: 8.24.0 */
|
|
2645
2648
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.js
CHANGED
|
@@ -982,7 +982,7 @@ const visitors = {
|
|
|
982
982
|
}
|
|
983
983
|
if (experimentalDynamicComponent.strictSpecifier) {
|
|
984
984
|
if (!is.literal(path.node?.source) || typeof path.node.source.value !== 'string') {
|
|
985
|
-
throw generateError(path.node, LWCClassErrors.INVALID_DYNAMIC_IMPORT_SOURCE_STRICT);
|
|
985
|
+
throw generateError(path.node, LWCClassErrors.INVALID_DYNAMIC_IMPORT_SOURCE_STRICT, is.literal(path.node?.source) ? String(path.node.source.value) : 'undefined');
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
988
|
const loader = experimentalDynamicComponent.loader;
|
|
@@ -2296,7 +2296,10 @@ function createNewContext(templateOptions) {
|
|
|
2296
2296
|
}
|
|
2297
2297
|
return false;
|
|
2298
2298
|
};
|
|
2299
|
-
|
|
2299
|
+
// Unique local variable names across block scopes, we don't care about block scope order
|
|
2300
|
+
const getLocalVars = () => [
|
|
2301
|
+
...new Set(localVarStack.flatMap((varsSet) => Array.from(varsSet))),
|
|
2302
|
+
];
|
|
2300
2303
|
const hoistedStatements = {
|
|
2301
2304
|
module: [],
|
|
2302
2305
|
templateFn: [],
|
|
@@ -2636,5 +2639,5 @@ function compileTemplateForSSR(src, filename, options, mode = DEFAULT_SSR_MODE)
|
|
|
2636
2639
|
}
|
|
2637
2640
|
|
|
2638
2641
|
export { compileComponentForSSR, compileTemplateForSSR };
|
|
2639
|
-
/** version: 8.
|
|
2642
|
+
/** version: 8.24.0 */
|
|
2640
2643
|
//# 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.
|
|
7
|
+
"version": "8.24.0",
|
|
8
8
|
"description": "Compile component for use during server-side rendering",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"compiler",
|
|
@@ -48,18 +48,18 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@babel/types": "7.28.
|
|
52
|
-
"@lwc/errors": "8.
|
|
53
|
-
"@lwc/shared": "8.
|
|
54
|
-
"@lwc/template-compiler": "8.
|
|
51
|
+
"@babel/types": "7.28.5",
|
|
52
|
+
"@lwc/errors": "8.24.0",
|
|
53
|
+
"@lwc/shared": "8.24.0",
|
|
54
|
+
"@lwc/template-compiler": "8.24.0",
|
|
55
55
|
"acorn": "8.15.0",
|
|
56
56
|
"astring": "^1.9.0",
|
|
57
57
|
"estree-toolkit": "^1.7.13",
|
|
58
|
-
"immer": "^10.
|
|
58
|
+
"immer": "^10.2.0",
|
|
59
59
|
"meriyah": "^5.0.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@lwc/babel-plugin-component": "8.
|
|
62
|
+
"@lwc/babel-plugin-component": "8.24.0",
|
|
63
63
|
"@types/estree": "^1.0.8"
|
|
64
64
|
}
|
|
65
65
|
}
|