Skip to content

Commit

Permalink
Prevent vite from keeping process.env.NODE_ENV in library build
Browse files Browse the repository at this point in the history
  • Loading branch information
pgiraud committed Aug 9, 2022
1 parent cad2713 commit 98d31c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@ export default defineConfig({
},
define: {
__APP_VERSION__: JSON.stringify(process.env.npm_package_version),
"process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV),
},
})

0 comments on commit 98d31c0

Please sign in to comment.