diff --git a/compiler/packages/react-compiler-runtime/scripts/build.js b/compiler/packages/react-compiler-runtime/scripts/build.js index c64a0fd16ed34..40c751c44742e 100755 --- a/compiler/packages/react-compiler-runtime/scripts/build.js +++ b/compiler/packages/react-compiler-runtime/scripts/build.js @@ -29,7 +29,7 @@ const config = { outfile: path.join(__dirname, '../dist/index.js'), bundle: true, external: ['react'], - format: argv.p === 'browser' ? 'esm' : 'cjs', + format: 'cjs', platform: argv.p, target: 'es6', banner: {