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

vite-plugin-env-compatible

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-env-compatible - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

8

dist/index.d.ts

@@ -8,3 +8,3 @@ import { Plugin } from 'vite';

/**
* 要注入客户端代码的前缀
* prefix for client-side injection
* @default 'VUE_APP'

@@ -14,3 +14,3 @@ */

/**
* 注入到客户端代码后的访问路径
* client-side env path
* @default 'process.env'

@@ -20,4 +20,4 @@ */

/**
* 是否不写入 process.env
* vite 默认不写入,但是 vue-cli 写入,这里可以设置
* write to process.env
* vite default not,whilte vue-cli yes
* @default false

@@ -24,0 +24,0 @@ */

@@ -202,4 +202,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var __create = Object.create;

enforce: "pre",
config(config) {
const mode = config.mode;
config(config, {mode}) {
if (!mode) {

@@ -206,0 +205,0 @@ console.log(`[$${name}]: mode is undefined, cannot auto load .env.*, please check your bin/vite_dev script for --mode`);

{
"name": "vite-plugin-env-compatible",
"version": "0.0.2",
"version": "0.0.3",
"description": "Environment Variables Compatible",

@@ -5,0 +5,0 @@ "main": "dist/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