@wuchale/svelte 0.16.5 → 0.16.6

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.
@@ -24,6 +24,7 @@ export declare class SvelteTransformer extends Transformer {
24
24
  visitSpreadAttribute: (node: AST.SpreadAttribute) => Message[];
25
25
  visitAttribute: (node: AST.Attribute) => Message[];
26
26
  visitConstTag: (node: AST.ConstTag) => Message[];
27
+ visitRenderTag: (node: AST.RenderTag) => Message[];
27
28
  visitSnippetBlock: (node: AST.SnippetBlock) => Message[];
28
29
  visitIfBlock: (node: AST.IfBlock) => Message[];
29
30
  visitEachBlock: (node: AST.EachBlock) => Message[];
@@ -175,6 +175,10 @@ export class SvelteTransformer extends Transformer {
175
175
  // @ts-expect-error
176
176
  return this.visitVariableDeclaration(node.declaration);
177
177
  };
178
+ visitRenderTag = (node) => {
179
+ // @ts-expect-error
180
+ return this.visit(node.expression);
181
+ };
178
182
  visitSnippetBlock = (node) => {
179
183
  // use module runtime var because the snippet may be exported from the module
180
184
  const prevRtVar = this.currentRtVar;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wuchale/svelte",
3
- "version": "0.16.5",
3
+ "version": "0.16.6",
4
4
  "description": "Protobuf-like i18n from plain code: Svelte adapter",
5
5
  "scripts": {
6
6
  "dev": "tsc --watch",
@@ -52,7 +52,7 @@
52
52
  "license": "MIT",
53
53
  "dependencies": {
54
54
  "svelte": "^5.37.0",
55
- "wuchale": "^0.17.4"
55
+ "wuchale": "^0.17.5"
56
56
  },
57
57
  "devDependencies": {
58
58
  "acorn": "^8.15.0",