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
Ming Ye committed
Jan 6, 2023 at 04:56 UTC
bbf4d22113bb93608e183b07af077816a4a7074a
1 file changed
+1
-1
scripts/rollup/build.js
+1
-1
@@ -21,7 +21,7 @@ const useForks = require('./plugins/use-forks-plugin');
21
const stripUnusedImports = require('./plugins/strip-unused-imports');
22
const Packaging = require('./packaging');
23
const {asyncRimRaf} = require('./utils');
24
-const codeFrame = require('babel-code-frame');
24
+const codeFrame = require('@babel/code-frame');
25
const Wrappers = require('./wrappers');
26
27
const RELEASE_CHANNEL = process.env.RELEASE_CHANNEL;