Skip to content

Commit a2b5e60

Browse files
authored
fix: handle access to undefined esbuild property (#3472)
1 parent 99be273 commit a2b5e60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/transform/resource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async function transform<T extends TransformOptions>(
2020
input: string | Uint8Array,
2121
options?: SameShape<TransformOptions, T>
2222
): Promise<TransformResult<T>> {
23-
return await esbuildTransform(input, { ...tryUseNuxt()?.options.esbuild.options, ...options })
23+
return await esbuildTransform(input, { ...tryUseNuxt()?.options.esbuild?.options, ...options })
2424
}
2525

2626
const debug = createDebug('@nuxtjs/i18n:transform:resource')

0 commit comments

Comments
 (0)