-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(vue-extractor): don't crash when there is no <template> in an SFC (…
- Loading branch information
Showing
4 changed files
with
58 additions
and
6 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
packages/extractor-vue/src/__snapshots__/extractor.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<script lang="ts"> | ||
import { defineComponent } from "vue" | ||
import { i18n } from "@lingui/core" | ||
// @ts-ignore only used to check if extractor doesn't crash with Typescript | ||
const foo: number = 5 | ||
export default defineComponent({ | ||
render(createElement) { | ||
return createElement('div', [i18n._("Render function message")]) | ||
}}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9e6ea70
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
js-lingui – ./
js-lingui-lingui.vercel.app
js-lingui.vercel.app
lingui.dev
js-lingui-git-main-lingui.vercel.app
lingui.js.org