vite-plugin-ejs
Advanced tools
Comparing version 1.1.4 to 1.1.5
17
index.js
@@ -1,9 +0,2 @@ | ||
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ejs = exports.ViteEjsPlugin = void 0; | ||
const ejs_1 = __importDefault(require("ejs")); | ||
exports.ejs = ejs_1.default; | ||
import ejs from "ejs"; | ||
/** | ||
@@ -39,7 +32,3 @@ * Vite Ejs Plugin Function | ||
data = data(); | ||
html = ejs_1.default.render(html, { | ||
NODE_ENV: process.env.NODE_ENV, | ||
isDev: process.env.NODE_ENV === "development", | ||
...data | ||
}, options?.ejs); | ||
html = ejs.render(html, Object.assign({ NODE_ENV: process.env.NODE_ENV, isDev: process.env.NODE_ENV === "development" }, data), options === null || options === void 0 ? void 0 : options.ejs); | ||
} | ||
@@ -54,2 +43,2 @@ catch (e) { | ||
} | ||
exports.ViteEjsPlugin = ViteEjsPlugin; | ||
export { ViteEjsPlugin, ejs }; |
{ | ||
"name": "vite-plugin-ejs", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Use Ejs in your entrypoint i.e index.html", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
3741
64