From bbf4d22113bb93608e183b07af077816a4a7074a Mon Sep 17 00:00:00 2001 From: Ming Ye Date: Fri, 6 Jan 2023 04:56:31 +0800 Subject: [PATCH] Update import for babel-code-frame in build script (#25963) ## Summary Updating import for babel-code-frame to use the official @babel package, as babel-code-frame is a ghost dependency. This change is necessary to avoid potential issues and stay up-to-date with the latest version of @babel/code-frame, which is already declared in our project's package.json. ## How did you test this change? yarn test --- scripts/rollup/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rollup/build.js b/scripts/rollup/build.js index c08adda6d9250..b054e0d4a3208 100644 --- a/scripts/rollup/build.js +++ b/scripts/rollup/build.js @@ -21,7 +21,7 @@ const useForks = require('./plugins/use-forks-plugin'); const stripUnusedImports = require('./plugins/strip-unused-imports'); const Packaging = require('./packaging'); const {asyncRimRaf} = require('./utils'); -const codeFrame = require('babel-code-frame'); +const codeFrame = require('@babel/code-frame'); const Wrappers = require('./wrappers'); const RELEASE_CHANNEL = process.env.RELEASE_CHANNEL;