Socket
Socket
Sign inDemoInstall

@vitejs/plugin-react

Package Overview
Dependencies
Maintainers
3
Versions
56
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.0 to 1.0.1

12

CHANGELOG.md

@@ -1,16 +0,16 @@

# [1.0.0](https://github.com/vitejs/vite/compare/plugin-react@1.0.0-beta.0...plugin-react@1.0.0) (2021-09-22)
## [1.0.1](https://github.com/vitejs/vite/compare/plugin-react@1.0.0...plugin-react@1.0.1) (2021-09-22)
### Bug Fixes
# 1.0.0-beta.0 (2021-09-20)
* **plugin-react:** inconsistent error warning ([#5031](https://github.com/vitejs/vite/issues/5031)) ([89ba8ce](https://github.com/vitejs/vite/commit/89ba8cedb8636968516bc38b37e1d2d5ed6234bb))
### Bug Fixes
### Features
* **deps:** update all non-major dependencies ([#4545](https://github.com/vitejs/vite/issues/4545)) ([a44fd5d](https://github.com/vitejs/vite/commit/a44fd5d38679da0be2536103e83af730cda73a95))
* disable `inputSourceMap` option of babel ([#4834](https://github.com/vitejs/vite/issues/4834)) ([ba89bd6](https://github.com/vitejs/vite/commit/ba89bd6df9231da85cebd089199bc4ad097af243)), closes [#4055](https://github.com/vitejs/vite/issues/4055)
* **plugin-react:** pre-optimize jsx-dev-runtime ([#5036](https://github.com/vitejs/vite/issues/5036)) ([a34dd27](https://github.com/vitejs/vite/commit/a34dd2725e64fedf626e23ba9ced480f5465a59b))
# 1.0.0 (TBD)
# [1.0.0](https://github.com/vitejs/vite/compare/plugin-react@1.0.0-beta.0...plugin-react@1.0.0) (2021-09-22)

@@ -17,0 +17,0 @@ See the [readme](https://github.com/aleclarson/vite/blob/f8129ce6e87684eb7a4edd8106351c5d98207d7b/packages/plugin-react/README.md#vitejsplugin-react-) for more information.

@@ -215,3 +215,3 @@ var __create = Object.create;

throw new Error(
"@vitejs/plugin-react-refresh can't detect preamble. Something is wrong. " +
"@vitejs/plugin-react can't detect preamble. Something is wrong. " +
"See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201"

@@ -479,2 +479,9 @@ );

enforce: "pre",
config() {
return {
optimizeDeps: {
include: ["react/jsx-dev-runtime"]
}
};
},
resolveId(id) {

@@ -481,0 +488,0 @@ return id === runtimeId ? id : null;

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

@@ -5,0 +5,0 @@ "author": "Evan You",

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

throw new Error(
"@vitejs/plugin-react-refresh can't detect preamble. Something is wrong. " +
"@vitejs/plugin-react can't detect preamble. Something is wrong. " +
"See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201"

@@ -43,0 +43,0 @@ );

@@ -254,2 +254,9 @@ import type { ParserOptions, TransformOptions, types as t } from '@babel/core'

enforce: 'pre',
config() {
return {
optimizeDeps: {
include: ['react/jsx-dev-runtime']
}
}
},
resolveId(id: string) {

@@ -256,0 +263,0 @@ return id === runtimeId ? id : null

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