@import-meta-env/unplugin
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -24,2 +24,6 @@ "use strict"; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
@@ -89,3 +93,3 @@ mod | ||
// package.json | ||
var version = "0.4.1"; | ||
var version = "0.4.2"; | ||
@@ -207,4 +211,4 @@ // ../shared/constant.ts | ||
// src/webpack/import-meta-plugin.ts | ||
var ImportMetaPlugin = class { | ||
// src/webpack/import-meta-env-plugin.ts | ||
var ImportMetaEnvPlugin = class { | ||
apply(compiler) { | ||
@@ -1104,2 +1108,3 @@ const { dependencies } = require("webpack"); | ||
} | ||
// TODO deprecate this? not really very useful | ||
snip(start, end) { | ||
@@ -1493,3 +1498,3 @@ const clone = this.clone(); | ||
webpack: (compiler) => { | ||
compiler.options.plugins.push(new ImportMetaPlugin()); | ||
compiler.options.plugins.push(new ImportMetaEnvPlugin()); | ||
const developmentModes = [ | ||
@@ -1496,0 +1501,0 @@ "development", |
import { PluginOptions } from "./types"; | ||
declare const createPlugin: import("unplugin").UnpluginInstance<PluginOptions, false>; | ||
declare const createPlugin: import("unplugin").UnpluginInstance<PluginOptions, boolean>; | ||
export = createPlugin; |
{ | ||
"name": "@import-meta-env/unplugin", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Build once, deploy anywhere. Startup/runtime environment variable solution for JavaScript.", | ||
@@ -42,8 +42,8 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@types/node": "18.11.13", | ||
"@types/object-hash": "3.0.1", | ||
"rollup": "3.7.2", | ||
"@types/node": "18.11.18", | ||
"@types/object-hash": "3.0.2", | ||
"rollup": "3.10.1", | ||
"ts-node": "10.9.1", | ||
"typescript": "4.9.4", | ||
"vite": "4.0.0", | ||
"vite": "4.0.4", | ||
"webpack": "5.75.0" | ||
@@ -64,4 +64,4 @@ }, | ||
"picocolors": "^1.0.0", | ||
"unplugin": "1.0.0" | ||
"unplugin": "1.0.1" | ||
} | ||
} |
58206
1661
+ Addedunplugin@1.0.1(transitive)
+ Addedwebpack-virtual-modules@0.5.0(transitive)
- Removedunplugin@1.0.0(transitive)
- Removedwebpack-virtual-modules@0.4.6(transitive)
Updatedunplugin@1.0.1