Skip to content

Commit

Permalink
chore: run format (#4969)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Sep 18, 2021
1 parent ba89bd6 commit c749994
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/playground/react-emotion/App.jsx
Expand Up @@ -2,7 +2,7 @@ import { useState } from 'react'
import { css } from '@emotion/react'

import _Switch from 'react-switch'
const Switch = _Switch.default || _Switch;
const Switch = _Switch.default || _Switch

export function Counter() {
const [count, setCount] = useState(0)
Expand Down
6 changes: 1 addition & 5 deletions packages/plugin-react/src/index.ts
Expand Up @@ -271,11 +271,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
}
}

return [
viteBabel,
viteReactRefresh,
useAutomaticRuntime && viteReactJsx
]
return [viteBabel, viteReactRefresh, useAutomaticRuntime && viteReactJsx]
}

viteReact.preambleCode = preambleCode
Expand Down

0 comments on commit c749994

Please sign in to comment.