mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
[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>
This commit is contained in:
@@ -22,7 +22,7 @@ const useForks = require('./plugins/use-forks-plugin');
|
||||
const dynamicImports = require('./plugins/dynamic-imports');
|
||||
const Packaging = require('./packaging');
|
||||
const {asyncRimRaf} = require('./utils');
|
||||
const codeFrame = require('@babel/code-frame');
|
||||
const codeFrame = require('@babel/code-frame').default;
|
||||
const Wrappers = require('./wrappers');
|
||||
|
||||
const RELEASE_CHANNEL = process.env.RELEASE_CHANNEL;
|
||||
|
||||
Reference in New Issue
Block a user