Skip to content

Commit

Permalink
fix: fix the definition of process.env, but scoped
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjoverm committed Jan 12, 2024
1 parent 95a8401 commit 8e85f7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vite.build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ const bundles = [
},
emptyOutDir: !firstRunCounter++,
},
define: {
'process.env': {
npm_package_version: process.env.npm_package_version,
},
},
})
}
})()

0 comments on commit 8e85f7e

Please sign in to comment.