Skip to content

Commit caedef0

Browse files
committed
fix(compiler-cli): update @babel/core dependency and lock version (#48634)
Similar to how the `@babel/core` dependency is managed for the localize NPM package, the version should be locked. Also the version should correspond to the version we install for building & testing. Currently the Babel version allowed by the compiler-cli may not work given the ESM -> CJS interop. causing errors like: ``` import { types as t } from "@babel/core"; ^^^^^ SyntaxError: Named export 'types' not found. The requested module '@babel/core' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using: import pkg from '@babel/core'; const { types: t } = pkg; ``` We can only be confident about the interop if we know the version installed- is the one we test. PR Close #48634
1 parent e38bc6b commit caedef0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/compiler-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
}
5454
},
5555
"dependencies": {
56-
"@babel/core": "^7.17.2",
56+
"@babel/core": "7.19.3",
5757
"@jridgewell/sourcemap-codec": "^1.4.14",
5858
"reflect-metadata": "^0.1.2",
5959
"chokidar": "^3.0.0",

0 commit comments

Comments
 (0)