Skip to content

Commit

Permalink
fix: transformer signature has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
JSteunou committed Jul 12, 2024
1 parent 9a49f8f commit f0b1689
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/vue/src/compiler/transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type LinguiTransformerOptions = {
*
*/
export const transformer =
(options: LinguiTransformerOptions): NodeTransform =>
(options: LinguiTransformerOptions = {}): NodeTransform =>
(node, context) => {
if (
node.type === NodeTypes.ROOT &&
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/src/extractor/extractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const vueExtractor: ExtractorType = {
comments: true,
isTS:
isTsBlock(descriptor.script) || isTsBlock(descriptor.scriptSetup),
nodeTransforms: [transformer],
nodeTransforms: [transformer()],
},
})

Expand Down
2 changes: 1 addition & 1 deletion packages/vue/src/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function run(source: string) {
bindingMetadata: {
Trans: BindingTypes.SETUP_MAYBE_REF,
},
nodeTransforms: [transformer],
nodeTransforms: [transformer()],
},
})
}

0 comments on commit f0b1689

Please sign in to comment.