Skip to content

Commit

Permalink
Add process.env.BUILD to be used for reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
arnautov-anton committed Feb 18, 2025
1 parent 88a3652 commit 80c91fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/bundle.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const bundles = [
platform,
define: {
'process.env.PKG_VERSION': JSON.stringify(packageJson.version),
'process.env.BUILD': JSON.stringify(`${platform}-cjs`),
},
})),
// ESM (browser only)
Expand All @@ -55,6 +56,7 @@ const bundles = [
platform: 'browser',
define: {
'process.env.PKG_VERSION': JSON.stringify(packageJson.version),
'process.env.BUILD': JSON.stringify(`browser-esm`),
},
},
]
Expand Down

0 comments on commit 80c91fe

Please sign in to comment.