From 850693957c7845ce9c321a288955a762e70ea5f0 Mon Sep 17 00:00:00 2001 From: FredKSchott Date: Wed, 17 Nov 2021 20:35:16 +0000 Subject: [PATCH] [ci] yarn format --- packages/astro/src/vite-plugin-jsx/index.ts | 27 +++++++++------------ 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/packages/astro/src/vite-plugin-jsx/index.ts b/packages/astro/src/vite-plugin-jsx/index.ts index d83af8177..29993ed09 100644 --- a/packages/astro/src/vite-plugin-jsx/index.ts +++ b/packages/astro/src/vite-plugin-jsx/index.ts @@ -68,21 +68,18 @@ async function transformJSX({ code, mode, id, ssr, renderer }: TransformJSXOptio const { jsxTransformOptions } = renderer; const options = await jsxTransformOptions!({ mode, ssr }); const plugins = [...(options.plugins || [])]; - const result = await babel.transformAsync( - code, - { - presets: options.presets, - plugins, - cwd: process.cwd(), - filename: id, - ast: false, - compact: false, - sourceMaps: true, - configFile: false, - babelrc: false, - } - ); - // TODO: Be more strict about bad return values here. + const result = await babel.transformAsync(code, { + presets: options.presets, + plugins, + cwd: process.cwd(), + filename: id, + ast: false, + compact: false, + sourceMaps: true, + configFile: false, + babelrc: false, + }); + // TODO: Be more strict about bad return values here. // Should we throw an error instead? Should we never return `{code: ""}`? if (!result) return null; return {