@vitejs/plugin-react-swc
Advanced tools
Comparing version 3.6.0 to 3.7.0
{ | ||
"name": "@vitejs/plugin-react-swc", | ||
"description": "Speed up your Vite dev server with SWC", | ||
"version": "3.6.0", | ||
"version": "3.7.0", | ||
"author": "Arnaud Barré (https://github.com/ArnaudBarre)", | ||
@@ -31,4 +31,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@swc/core": "^1.3.107" | ||
"@swc/core": "^1.5.7" | ||
} | ||
} |
@@ -377,4 +377,3 @@ /*! Copyright (c) Meta Platforms, Inc. and affiliates. **/ | ||
for (const key in moduleExports) { | ||
if (key === "__esModule") | ||
continue; | ||
if (key === "__esModule") continue; | ||
const exportValue = moduleExports[key]; | ||
@@ -398,4 +397,3 @@ if (isLikelyComponentType(exportValue)) { | ||
const enqueueUpdate = debounce(async () => { | ||
if (hooks.length) | ||
await Promise.all(hooks.map((cb) => cb())); | ||
if (hooks.length) await Promise.all(hooks.map((cb) => cb())); | ||
performReactRefresh(); | ||
@@ -426,4 +424,3 @@ }, 16); | ||
hasExports = true; | ||
if (isLikelyComponentType(value)) | ||
return true; | ||
if (isLikelyComponentType(value)) return true; | ||
return prevExports[key] === nextExports[key]; | ||
@@ -440,11 +437,7 @@ } | ||
for (const key in moduleExports) { | ||
if (key === "__esModule") | ||
continue; | ||
if (ignoredExports.includes(key)) | ||
continue; | ||
if (key === "__esModule") continue; | ||
if (ignoredExports.includes(key)) continue; | ||
const desc = Object.getOwnPropertyDescriptor(moduleExports, key); | ||
if (desc && desc.get) | ||
return key; | ||
if (!predicate(key, moduleExports[key])) | ||
return key; | ||
if (desc && desc.get) return key; | ||
if (!predicate(key, moduleExports[key])) return key; | ||
} | ||
@@ -451,0 +444,0 @@ return true; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
35905
906
Updated@swc/core@^1.5.7