From 9627d71c5050c7665a44e499fc643acce8a8a5e4 Mon Sep 17 00:00:00 2001 From: Cody Olsen <81981+stipsan@users.noreply.github.com> Date: Mon, 6 Jan 2025 15:06:09 +0100 Subject: [PATCH] fix: `react-compiler-runtime` should be cjs (#31993) --- compiler/packages/react-compiler-runtime/scripts/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/packages/react-compiler-runtime/scripts/build.js b/compiler/packages/react-compiler-runtime/scripts/build.js index c64a0fd16e..40c751c447 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: {