Skip to content

Commit

Permalink
Replace process.env.NODE_ENV.
Browse files Browse the repository at this point in the history
  • Loading branch information
molefrog committed Dec 6, 2023
1 parent 165c4cd commit f0d6766
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ import externalGlobals from "rollup-plugin-external-globals";

// https://vitejs.dev/config/
export default defineConfig({
define: {
"process.env.NODE_ENV": '"production"',
},
build: {
lib: {
entry: "./src/library.tsx",
formats: ["es"],
},

rollupOptions: {
plugins: [
externalGlobals({
Expand Down

0 comments on commit f0d6766

Please sign in to comment.