Skip to content

Commit 6752e5d

Browse files
committed
Use empty resouce instead of undefined
1 parent 0937eaf commit 6752e5d

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
Binary file not shown.

src/plugins/ftl/inject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function getInjectFtl(options: { checkSyntax: boolean, parseFtl: boolean
3232
const importString = options.parseFtl === true ? '' : '\nimport { FluentResource } from \'@fluent/bundle\'\n'
3333

3434
if (source.length === 0) {
35-
magic.append('undefined')
35+
magic.append('{"body":[]}')
3636
}
3737
else if (options.parseFtl === true) {
3838
const resource = new FluentResource(normalize(source))

0 commit comments

Comments
 (0)