Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vitejs/plugin-react

Package Overview
Dependencies
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitejs/plugin-react - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

9

CHANGELOG.md

@@ -0,1 +1,10 @@

## [1.0.2](https://github.com/vitejs/vite/compare/plugin-react@1.0.1...plugin-react@1.0.2) (2021-10-05)
### Bug Fixes
* **plugin-react:** respect `opts.fastRefresh` in viteBabel ([#5139](https://github.com/vitejs/vite/issues/5139)) ([5cf4e69](https://github.com/vitejs/vite/commit/5cf4e69cd3afc7f960e02072171c7c441747e8f0))
## [1.0.1](https://github.com/vitejs/vite/compare/plugin-react@1.0.0...plugin-react@1.0.1) (2021-09-22)

@@ -2,0 +11,0 @@

5

dist/index.js

@@ -25,5 +25,2 @@ var __create = Object.create;

var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
var __require = typeof require !== "undefined" ? require : (x) => {
throw new Error('Dynamic require of "' + x + '" is not supported');
};
var __esm = (fn, res) => function __init() {

@@ -349,3 +346,3 @@ return fn && (res = (0, fn[Object.keys(fn)[0]])(fn = 0)), res;

isProduction = config.isProduction;
skipFastRefresh = isProduction || config.command === "build";
skipFastRefresh || (skipFastRefresh = isProduction || config.command === "build");
const jsxInject = config.esbuild && config.esbuild.jsxInject;

@@ -352,0 +349,0 @@ if (jsxInject && importReactRE.test(jsxInject)) {

{
"name": "@vitejs/plugin-react",
"version": "1.0.1",
"version": "1.0.2",
"license": "MIT",

@@ -44,6 +44,3 @@ "author": "Evan You",

"resolve": "^1.20.0"
},
"devDependencies": {
"vite": "link:../vite"
}
}

2

src/index.ts

@@ -73,3 +73,3 @@ import type { ParserOptions, TransformOptions, types as t } from '@babel/core'

isProduction = config.isProduction
skipFastRefresh = isProduction || config.command === 'build'
skipFastRefresh ||= isProduction || config.command === 'build'

@@ -76,0 +76,0 @@ const jsxInject = config.esbuild && config.esbuild.jsxInject

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc