Skip to content

Commit 27fbb9d

Browse files
update rolldown config (#78)
1 parent 6e156bb commit 27fbb9d

File tree

6 files changed

+35
-29
lines changed

6 files changed

+35
-29
lines changed

apps/1000/rolldown.config.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ export default defineConfig({
44
input: {
55
main: "./src/index.jsx",
66
},
7-
define: {
8-
"process.env.NODE_ENV": JSON.stringify("production"),
7+
transform: {
8+
define: {
9+
"process.env.NODE_ENV": JSON.stringify("production"),
10+
},
911
},
10-
profilerNames: false,
1112
output: {
1213
minify: true,
1314
sourcemap: true,

apps/10000/rolldown.config.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ export default defineConfig({
44
input: {
55
main: "./src/index.jsx",
66
},
7-
define: {
8-
"process.env.NODE_ENV": JSON.stringify("production"),
7+
transform: {
8+
define: {
9+
"process.env.NODE_ENV": JSON.stringify("production"),
10+
},
911
},
10-
profilerNames: false,
1112
output: {
1213
minify: true,
1314
sourcemap: true,

apps/3000/rolldown.config.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ export default defineConfig({
44
input: {
55
main: "./src/index.jsx",
66
},
7-
define: {
8-
"process.env.NODE_ENV": JSON.stringify("production"),
7+
transform: {
8+
define: {
9+
"process.env.NODE_ENV": JSON.stringify("production"),
10+
},
911
},
10-
profilerNames: false,
1112
output: {
1213
minify: true,
1314
sourcemap: true,

apps/5000/rolldown.config.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ export default defineConfig({
44
input: {
55
main: "./src/index.jsx",
66
},
7-
define: {
8-
"process.env.NODE_ENV": JSON.stringify("production"),
7+
transform: {
8+
define: {
9+
"process.env.NODE_ENV": JSON.stringify("production"),
10+
},
911
},
10-
profilerNames: false,
1112
output: {
1213
minify: true,
1314
sourcemap: true,

apps/rome/rolldown.config.mjs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ export default defineConfig({
55
input: {
66
main: "./src/entry.ts",
77
},
8-
platform: "node",
8+
platform: "node",
99
cwd: import.meta.dirname,
10-
define: {
11-
"process.env.NODE_ENV": JSON.stringify("production"),
10+
transform: {
11+
define: {
12+
"process.env.NODE_ENV": JSON.stringify("production"),
13+
},
1214
},
1315
shimMissingExports: true,
14-
tsconfig: path.resolve(import.meta.dirname, "src/tsconfig.json"),
15-
profilerNames: false,
16+
tsconfig: path.resolve(import.meta.dirname, "src/tsconfig.json"),
1617
output: {
1718
minify: true,
1819
sourcemap: true,

apps/three10x/rolldown.config.mjs

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
import { defineConfig } from "rolldown";
22

33
export default defineConfig({
4-
input: {
5-
main: "./entry.js",
6-
},
7-
define: {
8-
"process.env.NODE_ENV": JSON.stringify("production"),
9-
},
10-
profilerNames: false,
11-
output: {
12-
minify: true,
13-
sourcemap: true,
14-
dir: "dist-rolldown",
15-
},
4+
input: {
5+
main: "./entry.js",
6+
},
7+
transform: {
8+
define: {
9+
"process.env.NODE_ENV": JSON.stringify("production"),
10+
},
11+
},
12+
output: {
13+
minify: true,
14+
sourcemap: true,
15+
dir: "dist-rolldown",
16+
},
1617
});

0 commit comments

Comments
 (0)