vite-plugin-ejs
Advanced tools
Comparing version
13
index.js
@@ -1,2 +0,9 @@ | ||
import ejs from "ejs"; | ||
"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; | ||
/** | ||
@@ -32,3 +39,3 @@ * Vite Ejs Plugin Function | ||
data = data(); | ||
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); | ||
html = ejs_1.default.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); | ||
} | ||
@@ -43,2 +50,2 @@ catch (e) { | ||
} | ||
export { ViteEjsPlugin, ejs }; | ||
exports.ViteEjsPlugin = ViteEjsPlugin; |
{ | ||
"name": "vite-plugin-ejs", | ||
"version": "1.1.5", | ||
"version": "1.2.0", | ||
"description": "Use Ejs in your entrypoint i.e index.html", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
4074
8.9%71
10.94%