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.2 to 1.0.3

9

CHANGELOG.md

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

## [1.0.3](https://github.com/vitejs/vite/compare/plugin-react@1.0.2...plugin-react@1.0.3) (2021-10-11)
### Bug Fixes
* **plugin-react:** turn off jsx for .ts ([#5198](https://github.com/vitejs/vite/issues/5198)) ([916f9d3](https://github.com/vitejs/vite/commit/916f9d3984d5e83f7cb869b3606a1f043a814b97)), closes [#5102](https://github.com/vitejs/vite/issues/5102)
## [1.0.2](https://github.com/vitejs/vite/compare/plugin-react@1.0.1...plugin-react@1.0.2) (2021-10-05)

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

2

package.json
{
"name": "@vitejs/plugin-react",
"version": "1.0.2",
"version": "1.0.3",
"license": "MIT",

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

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

...userParserPlugins,
'jsx',
'importMeta',

@@ -112,2 +111,6 @@ // This plugin is applied before esbuild transforms the code,

if (!id.endsWith('.ts')) {
parserPlugins.push('jsx')
}
const isTypeScript = /\.tsx?$/.test(id)

@@ -114,0 +117,0 @@ if (isTypeScript) {

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