Skip to content

Commit 43170c3

Browse files
committed
fix(cli): force production JSX runtime for Windows binary build (--jsx-import-source and __DEV__=false)
1 parent fc5e71e commit 43170c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli/scripts/build-binary.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ async function main() {
140140

141141
const defineFlags = [
142142
['process.env.NODE_ENV', '"production"'],
143+
['__DEV__', 'false'],
143144
['process.env.CODEBUFF_IS_BINARY', '"true"'],
144145
['process.env.CODEBUFF_CLI_VERSION', `"${version}"`],
145146
[
@@ -156,6 +157,7 @@ async function main() {
156157
`--outfile=${outputFile}`,
157158
'--sourcemap=none',
158159
'--jsx=react-jsx',
160+
'--jsx-import-source=@opentui/react',
159161
...defineFlags.flatMap(([key, value]) => ['--define', `${key}=${value}`]),
160162
]
161163

0 commit comments

Comments
 (0)