Skip to content

Commit 9e2f595

Browse files
committed
replace process.env.NODE_ENV at build time
1 parent 8304d71 commit 9e2f595

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/@tailwindcss-node/tsup.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,35 @@ export default defineConfig([
66
minify: true,
77
dts: true,
88
entry: ['src/index.cts'],
9+
define: {
10+
'process.env.NODE_ENV': '"production"',
11+
},
912
},
1013
{
1114
format: ['esm'],
1215
minify: true,
1316
dts: true,
1417
entry: ['src/index.ts'],
18+
define: {
19+
'process.env.NODE_ENV': '"production"',
20+
},
1521
},
1622
{
1723
format: ['esm'],
1824
minify: true,
1925
dts: true,
2026
entry: ['src/esm-cache.loader.mts'],
27+
define: {
28+
'process.env.NODE_ENV': '"production"',
29+
},
2130
},
2231
{
2332
format: ['cjs'],
2433
minify: true,
2534
dts: true,
2635
entry: ['src/require-cache.cts'],
36+
define: {
37+
'process.env.NODE_ENV': '"production"',
38+
},
2739
},
2840
])

0 commit comments

Comments
 (0)