We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8de690a commit 1138a16Copy full SHA for 1138a16
packages/bundler-plugin-core/build.config.ts
@@ -1,5 +1,6 @@
1
import { defineBuildConfig } from "unbuild";
2
import { codecovRollupPlugin } from "codecovProdRollupPlugin";
3
+import packageJson from "./package.json";
4
5
export default defineBuildConfig({
6
entries: ["./src/index"],
@@ -16,6 +17,12 @@ export default defineBuildConfig({
16
17
esbuild: {
18
minify: true,
19
},
20
+ replace: {
21
+ preventAssignment: true,
22
+ values: {
23
+ __PACKAGE_VERSION__: JSON.stringify(packageJson.version),
24
+ },
25
26
27
hooks: {
28
"rollup:options": (_ctx, opts) => {
0 commit comments