@preact/preset-vite
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -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 () { |
{ | ||
"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
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
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
27946
482