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.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

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