@vitejs/plugin-react
Advanced tools
Comparing version 1.0.7 to 1.1.0-beta.0
@@ -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('?') |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
54407
1313
2