@import-meta-env/unplugin
Advanced tools
Comparing version 0.4.10 to 0.5.0
@@ -92,3 +92,3 @@ "use strict"; | ||
// package.json | ||
var version = "0.4.10"; | ||
var version = "0.5.0"; | ||
@@ -1513,2 +1513,11 @@ // ../shared/constant.ts | ||
}, | ||
rspack: (compiler) => { | ||
transformMode = transformMode ?? compiler.options.mode === "production" ? "runtime" : "compile-time"; | ||
if (transformMode === "compile-time") { | ||
env = resolveEnv({ | ||
envExampleFilePath: options == null ? void 0 : options.example, | ||
envFilePath: options == null ? void 0 : options.env | ||
}); | ||
} | ||
}, | ||
buildStart() { | ||
@@ -1515,0 +1524,0 @@ debug && console.debug("buildStart::"); |
{ | ||
"name": "@import-meta-env/unplugin", | ||
"version": "0.4.10", | ||
"version": "0.5.0", | ||
"description": "Build once, deploy anywhere. Startup/runtime environment variable solution for JavaScript.", | ||
@@ -43,9 +43,9 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@types/node": "18.18.3", | ||
"@types/object-hash": "3.0.4", | ||
"rollup": "3.29.4", | ||
"@types/node": "18.18.6", | ||
"@types/object-hash": "3.0.5", | ||
"rollup": "4.1.4", | ||
"ts-node": "10.9.1", | ||
"typescript": "5.2.2", | ||
"vite": "4.4.10", | ||
"webpack": "5.88.2" | ||
"vite": "4.5.0", | ||
"webpack": "5.89.0" | ||
}, | ||
@@ -52,0 +52,0 @@ "peerDependencies": { |
59006
1675