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

vite-plugin-ejs

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-ejs - npm Package Compare versions

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 };

2

package.json
{
"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",

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