[rollup] Fix codeFrame is not a function (#32591)
Extracting portions of #32416 for easier review. Fixes a small issue where `codeFrame` is not a function when a rollup error was encountered. Co-authored-by: michael faith <michaelfaith@users.noreply.github.com> --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32591). * #32592 * __->__ #32591 * #32590 * #32589 * #32588 --------- Co-authored-by: michael faith <michaelfaith@users.noreply.github.com>
lauren committed
Mar 12, 2025 at 19:12 UTC
8646349aebb514eeef7e01614fb4aeb2f2c7a6c8
1 file changed
+1
-1
scripts/rollup/build.js
+1
-1
@@ -22,7 +22,7 @@ const useForks = require('./plugins/use-forks-plugin');
22
const dynamicImports = require('./plugins/dynamic-imports');
23
const Packaging = require('./packaging');
24
const {asyncRimRaf} = require('./utils');
25
-const codeFrame = require('@babel/code-frame');
25
+const codeFrame = require('@babel/code-frame').default;
26
const Wrappers = require('./wrappers');
27
28
const RELEASE_CHANNEL = process.env.RELEASE_CHANNEL;