@import-meta-env/unplugin
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -210,3 +210,3 @@ "use strict"; | ||
// package.json | ||
var version = "0.3.0"; | ||
var version = "0.3.1"; | ||
@@ -1393,5 +1393,8 @@ // ../shared/constant.ts | ||
} | ||
if (s.hasChanged() === false) { | ||
return; | ||
} | ||
return { | ||
code: s.toString(), | ||
map: s.generateMap() | ||
map: s.generateMap({ source: id, includeContent: true }) | ||
}; | ||
@@ -1445,5 +1448,8 @@ } | ||
} | ||
if (s.hasChanged() === false) { | ||
return; | ||
} | ||
return { | ||
code: s.toString(), | ||
map: s.generateMap() | ||
map: s.generateMap({ source: id, includeContent: true }) | ||
}; | ||
@@ -1580,3 +1586,3 @@ } | ||
debug && console.debug("=== code after ==="); | ||
debug && console.debug(result.code); | ||
debug && console.debug((result == null ? void 0 : result.code) ?? code); | ||
} else { | ||
@@ -1588,10 +1594,6 @@ debug && console.debug("=== runtime transform ===", id); | ||
debug && console.debug("=== after ==="); | ||
debug && console.debug(result.code); | ||
debug && console.debug((result == null ? void 0 : result.code) ?? code); | ||
} | ||
debug && console.debug("=================="); | ||
if (meta.framework === "webpack") { | ||
return result.code; | ||
} else { | ||
return result; | ||
} | ||
return result == null ? void 0 : result.code; | ||
}, | ||
@@ -1598,0 +1600,0 @@ buildEnd() { |
@@ -14,2 +14,2 @@ import { UnpluginContextMeta } from "unplugin"; | ||
map: import("magic-string").SourceMap; | ||
}; | ||
} | undefined; |
@@ -12,2 +12,2 @@ import { UnpluginContextMeta } from "unplugin"; | ||
map: import("magic-string").SourceMap; | ||
}; | ||
} | undefined; |
{ | ||
"name": "@import-meta-env/unplugin", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Build once, deploy anywhere. Startup/runtime environment variable solution for JavaScript.", | ||
@@ -47,4 +47,4 @@ "license": "MIT", | ||
"typescript": "4.8.4", | ||
"vite": "3.2.2", | ||
"webpack": "5.74.0" | ||
"vite": "3.2.3", | ||
"webpack": "5.75.0" | ||
}, | ||
@@ -51,0 +51,0 @@ "peerDependencies": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
60313
1710
0