@sigil-dev/compiler 0.7.6 → 0.7.7

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sigil-dev/compiler",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "0.7.6",
5
+ "version": "0.7.7",
6
6
  "private": false,
7
7
  "description": "Compiler for the Sigil framework",
8
8
  "peerDependencies": {
@@ -22,6 +22,7 @@
22
22
  "@babel/types": "next"
23
23
  },
24
24
  "dependencies": {
25
+ "@babel/generator": "^7.29.7",
25
26
  "@babel/plugin-transform-typescript": "^8.0.0-rc.6",
26
27
  "@babel/preset-typescript": "^8.0.0-rc.6"
27
28
  }
@@ -1,10 +1,10 @@
1
- import type { NodePath, types as t } from "@babel/core";
2
-
3
- export function handleStateSSR(
4
- declaration: NodePath<t.VariableDeclaration>,
5
- declarator: NodePath<t.VariableDeclarator>,
6
- init: NodePath<t.CallExpression>,
7
- ): void {
8
- init.replaceWith(init.node.arguments[0] as t.Expression);
9
- declaration.node.kind = "let";
10
- }
1
+ import type { NodePath, types as t } from "@babel/core";
2
+
3
+ export function handleStateSSR(
4
+ declaration: NodePath<t.VariableDeclaration>,
5
+ declarator: NodePath<t.VariableDeclarator>,
6
+ init: NodePath<t.CallExpression>,
7
+ ): void {
8
+ init.replaceWith(init.node.arguments[0] as t.Expression);
9
+ declaration.node.kind = "let";
10
+ }