Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/plugin-react-swc/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ type Options = {
}

const react = (_options?: Options): Plugin[] => {
let hmrDisabled = false
let hmrDisabled = true
let viteCacheRoot: string | undefined
const options = {
jsxImportSource: _options?.jsxImportSource ?? 'react',
Expand Down Expand Up @@ -133,7 +133,7 @@ const react = (_options?: Options): Plugin[] => {
}),
configResolved(config) {
viteCacheRoot = config.cacheDir
if (config.server.hmr === false) hmrDisabled = true
hmrDisabled = config.server.hmr === false
const mdxIndex = config.plugins.findIndex(
(p) => p.name === '@mdx-js/rollup',
)
Expand Down
Loading