vite-plugin-ejs
Advanced tools
Comparing version 1.0.1 to 1.1.0
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, { | ||
html = ejs_1.default.render(html, { | ||
NODE_ENV: process.env.NODE_ENV, | ||
@@ -47,2 +54,2 @@ isDev: process.env.NODE_ENV === "development", | ||
} | ||
export { ViteEjsPlugin, ejs }; | ||
exports.ViteEjsPlugin = ViteEjsPlugin; |
{ | ||
"name": "vite-plugin-ejs", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Use Ejs in your entrypoint i.e index.html", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"repository": "https://github.com/trapcodeio/vite-plugin-ejs.git", | ||
@@ -7,0 +8,0 @@ "author": "trapcodeio", |
# vite-plugin-ejs | ||
Use `ejs` template to parse your entrypoint i.e `index.html` | ||
Use [ejs](https://www.npmjs.com/package/ejs) template language to parse your entrypoint i.e `index.html` | ||
@@ -5,0 +5,0 @@ ### Install |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
4043
75
0