@lwc/ssr-compiler 8.15.0 → 8.16.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 +4 -1
- package/dist/index.js +4 -1
- package/package.json +5 -5
package/dist/index.cjs.js
CHANGED
|
@@ -746,6 +746,7 @@ const bGenerateMarkup = (esTemplate `
|
|
|
746
746
|
enumerable: false,
|
|
747
747
|
writable: false,
|
|
748
748
|
value: async function* generateMarkup(
|
|
749
|
+
// The $$emit function is magically inserted here
|
|
749
750
|
tagName,
|
|
750
751
|
props,
|
|
751
752
|
attrs,
|
|
@@ -2436,6 +2437,7 @@ function templateIrToEsTree(node, contextOpts) {
|
|
|
2436
2437
|
// TODO [#4663]: Render mode mismatch between template and compiler should throw.
|
|
2437
2438
|
const bExportTemplate = (esTemplate `
|
|
2438
2439
|
export default async function* tmpl(
|
|
2440
|
+
// This is where $$emit comes from
|
|
2439
2441
|
shadowSlottedContent,
|
|
2440
2442
|
lightSlottedContent,
|
|
2441
2443
|
scopedSlottedContent,
|
|
@@ -2462,6 +2464,7 @@ const bExportTemplate = (esTemplate `
|
|
|
2462
2464
|
const { stylesheets: staticStylesheets } = Cmp;
|
|
2463
2465
|
if (defaultStylesheets || defaultScopedStylesheets || staticStylesheets) {
|
|
2464
2466
|
yield renderStylesheets(
|
|
2467
|
+
$$emit,
|
|
2465
2468
|
defaultStylesheets,
|
|
2466
2469
|
defaultScopedStylesheets,
|
|
2467
2470
|
staticStylesheets,
|
|
@@ -2566,5 +2569,5 @@ function compileTemplateForSSR(src, filename, options, mode = shared.DEFAULT_SSR
|
|
|
2566
2569
|
|
|
2567
2570
|
exports.compileComponentForSSR = compileComponentForSSR;
|
|
2568
2571
|
exports.compileTemplateForSSR = compileTemplateForSSR;
|
|
2569
|
-
/** version: 8.
|
|
2572
|
+
/** version: 8.16.0 */
|
|
2570
2573
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.js
CHANGED
|
@@ -742,6 +742,7 @@ const bGenerateMarkup = (esTemplate `
|
|
|
742
742
|
enumerable: false,
|
|
743
743
|
writable: false,
|
|
744
744
|
value: async function* generateMarkup(
|
|
745
|
+
// The $$emit function is magically inserted here
|
|
745
746
|
tagName,
|
|
746
747
|
props,
|
|
747
748
|
attrs,
|
|
@@ -2432,6 +2433,7 @@ function templateIrToEsTree(node, contextOpts) {
|
|
|
2432
2433
|
// TODO [#4663]: Render mode mismatch between template and compiler should throw.
|
|
2433
2434
|
const bExportTemplate = (esTemplate `
|
|
2434
2435
|
export default async function* tmpl(
|
|
2436
|
+
// This is where $$emit comes from
|
|
2435
2437
|
shadowSlottedContent,
|
|
2436
2438
|
lightSlottedContent,
|
|
2437
2439
|
scopedSlottedContent,
|
|
@@ -2458,6 +2460,7 @@ const bExportTemplate = (esTemplate `
|
|
|
2458
2460
|
const { stylesheets: staticStylesheets } = Cmp;
|
|
2459
2461
|
if (defaultStylesheets || defaultScopedStylesheets || staticStylesheets) {
|
|
2460
2462
|
yield renderStylesheets(
|
|
2463
|
+
$$emit,
|
|
2461
2464
|
defaultStylesheets,
|
|
2462
2465
|
defaultScopedStylesheets,
|
|
2463
2466
|
staticStylesheets,
|
|
@@ -2561,5 +2564,5 @@ function compileTemplateForSSR(src, filename, options, mode = DEFAULT_SSR_MODE)
|
|
|
2561
2564
|
}
|
|
2562
2565
|
|
|
2563
2566
|
export { compileComponentForSSR, compileTemplateForSSR };
|
|
2564
|
-
/** version: 8.
|
|
2567
|
+
/** version: 8.16.0 */
|
|
2565
2568
|
//# 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.16.0",
|
|
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.9",
|
|
52
|
-
"@lwc/shared": "8.
|
|
53
|
-
"@lwc/errors": "8.
|
|
54
|
-
"@lwc/template-compiler": "8.
|
|
52
|
+
"@lwc/shared": "8.16.0",
|
|
53
|
+
"@lwc/errors": "8.16.0",
|
|
54
|
+
"@lwc/template-compiler": "8.16.0",
|
|
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.
|
|
62
|
+
"@lwc/babel-plugin-component": "8.16.0",
|
|
63
63
|
"@types/estree": "^1.0.6"
|
|
64
64
|
}
|
|
65
65
|
}
|