@vitejs/plugin-react
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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 @@ |
@@ -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" | ||
} | ||
} |
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
51528
0
2
1289