Socket
Socket
Sign inDemoInstall

@vitejs/plugin-react-swc

Package Overview
Dependencies
2
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.6.0 to 3.7.0

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc