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.7 to 1.1.0-beta.0

2

CHANGELOG.md

@@ -1,2 +0,2 @@

## [1.0.7](https://github.com/vitejs/vite/compare/plugin-react@1.0.6...plugin-react@1.0.7) (2021-10-28)
# [1.1.0-beta.0](https://github.com/vitejs/vite/compare/plugin-react@1.0.6...plugin-react@1.1.0-beta.0) (2021-10-28)

@@ -3,0 +3,0 @@

@@ -354,4 +354,5 @@ var __create = Object.create;

},
async transform(code, id, ssr) {
async transform(code, id, options) {
var _a2, _b2;
const ssr = typeof options === "boolean" ? options : (options == null ? void 0 : options.ssr) === true;
const [filepath, querystring = ""] = id.split("?");

@@ -358,0 +359,0 @@ const [extension = ""] = querystring.match(fileExtensionRE) || filepath.match(fileExtensionRE) || [];

{
"name": "@vitejs/plugin-react",
"version": "1.0.7",
"version": "1.1.0-beta.0",
"license": "MIT",

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

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

},
async transform(code, id, ssr) {
async transform(code, id, options) {
const ssr = typeof options === 'boolean' ? options : options?.ssr === true
// File extension could be mocked/overriden in querystring.

@@ -104,0 +105,0 @@ const [filepath, querystring = ''] = id.split('?')

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