Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@preact/preset-vite

Package Overview
Dependencies
Maintainers
10
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@preact/preset-vite - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

15

dist/cjs/index.js

@@ -58,3 +58,2 @@ "use strict";

exports.__esModule = true;
var resolve_1 = __importDefault(require("resolve"));
var vite_1 = __importDefault(require("@prefresh/vite"));

@@ -89,16 +88,2 @@ var devtools_js_1 = require("./devtools.js");

},
resolveId: function (id) {
return id === "preact/jsx-runtime" ? id : null;
},
load: function (id) {
if (id === "preact/jsx-runtime") {
var runtimePath = resolve_1["default"].sync("preact/jsx-runtime", {
basedir: config.root
});
var exports_1 = ["jsx", "jsxs", "Fragment"];
return __spreadArray([
"import * as jsxRuntime from " + JSON.stringify(runtimePath)
], exports_1.map(function (name) { return "export const " + name + " = jsxRuntime." + name; })).join("\n");
}
},
transform: function (code, url) {

@@ -105,0 +90,0 @@ return __awaiter(this, void 0, void 0, function () {

4

package.json
{
"name": "@preact/preset-vite",
"version": "2.2.0",
"version": "2.3.0",
"description": "Preact preset for the vite bundler",

@@ -45,3 +45,3 @@ "main": "./dist/cjs/index.js",

"@babel/core": "7.x",
"vite": "2.x"
"vite": "2.x || 3.x"
},

@@ -48,0 +48,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

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