From 1b861db94c7a5ef6ec0baacad194081d0e057f6a Mon Sep 17 00:00:00 2001 From: Cody Olsen Date: Mon, 6 Jan 2025 11:39:52 +0100 Subject: [PATCH] fix: `react-compiler-runtime` should be cjs --- 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 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: {