@lwc/ssr-compiler 9.0.3 → 9.0.4-alpha.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 CHANGED
@@ -837,12 +837,11 @@ function addGenerateMarkupFunction(program, state, tagName, filename) {
837
837
  // At the time of generation, the invoker does not have reference to its tag name to pass as an argument.
838
838
  const defaultTagName = estreeToolkit.builders.literal(tagName);
839
839
  const classIdentifier = estreeToolkit.builders.identifier(state.lwcClassName);
840
- let exposeTemplateBlock = null;
841
840
  const defaultTmplPath = `./${node_path.parse(filename).name}.html`;
842
841
  const tmplVar = estreeToolkit.builders.identifier('__lwcTmpl');
843
842
  program.body.unshift(bImportDeclaration({ default: tmplVar.name }, defaultTmplPath));
844
843
  program.body.unshift(bImportDeclaration({ SYMBOL__DEFAULT_TEMPLATE: '__SYMBOL__DEFAULT_TEMPLATE' }));
845
- exposeTemplateBlock = bExposeTemplate(tmplVar, classIdentifier);
844
+ const exposeTemplateBlock = bExposeTemplate(tmplVar, classIdentifier);
846
845
  // If no wire adapters are detected on the component, we don't bother injecting the wire-related code.
847
846
  let connectWireAdapterCode = [];
848
847
  if (state.wireAdapters.length) {
@@ -2716,5 +2715,5 @@ function compileTemplateForSSR(src, filename, options, mode = shared.DEFAULT_SSR
2716
2715
 
2717
2716
  exports.compileComponentForSSR = compileComponentForSSR;
2718
2717
  exports.compileTemplateForSSR = compileTemplateForSSR;
2719
- /** version: 9.0.3 */
2718
+ /** version: 9.0.4-alpha.1 */
2720
2719
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -833,12 +833,11 @@ function addGenerateMarkupFunction(program, state, tagName, filename) {
833
833
  // At the time of generation, the invoker does not have reference to its tag name to pass as an argument.
834
834
  const defaultTagName = builders.literal(tagName);
835
835
  const classIdentifier = builders.identifier(state.lwcClassName);
836
- let exposeTemplateBlock = null;
837
836
  const defaultTmplPath = `./${parse$1(filename).name}.html`;
838
837
  const tmplVar = builders.identifier('__lwcTmpl');
839
838
  program.body.unshift(bImportDeclaration({ default: tmplVar.name }, defaultTmplPath));
840
839
  program.body.unshift(bImportDeclaration({ SYMBOL__DEFAULT_TEMPLATE: '__SYMBOL__DEFAULT_TEMPLATE' }));
841
- exposeTemplateBlock = bExposeTemplate(tmplVar, classIdentifier);
840
+ const exposeTemplateBlock = bExposeTemplate(tmplVar, classIdentifier);
842
841
  // If no wire adapters are detected on the component, we don't bother injecting the wire-related code.
843
842
  let connectWireAdapterCode = [];
844
843
  if (state.wireAdapters.length) {
@@ -2711,5 +2710,5 @@ function compileTemplateForSSR(src, filename, options, mode = DEFAULT_SSR_MODE)
2711
2710
  }
2712
2711
 
2713
2712
  export { compileComponentForSSR, compileTemplateForSSR };
2714
- /** version: 9.0.3 */
2713
+ /** version: 9.0.4-alpha.1 */
2715
2714
  //# 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": "9.0.3",
7
+ "version": "9.0.4-alpha.1",
8
8
  "description": "Compile component for use during server-side rendering",
9
9
  "keywords": [
10
10
  "compiler",
@@ -54,9 +54,9 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@babel/types": "7.29.0",
57
- "@lwc/errors": "9.0.3",
58
- "@lwc/shared": "9.0.3",
59
- "@lwc/template-compiler": "9.0.3",
57
+ "@lwc/errors": "9.0.4-alpha.1",
58
+ "@lwc/shared": "9.0.4-alpha.1",
59
+ "@lwc/template-compiler": "9.0.4-alpha.1",
60
60
  "acorn": "8.16.0",
61
61
  "astring": "^1.9.0",
62
62
  "estree-toolkit": "^1.7.13",
@@ -64,7 +64,7 @@
64
64
  "meriyah": "^7.1.0"
65
65
  },
66
66
  "devDependencies": {
67
- "@lwc/babel-plugin-component": "9.0.3",
67
+ "@lwc/babel-plugin-component": "9.0.4-alpha.1",
68
68
  "@types/estree": "^1.0.8"
69
69
  }
70
70
  }