Skip to content

Commit 9f1d028

Browse files
committed
🔧 Updates babel config to fix CLI issue
1 parent 07212c0 commit 9f1d028

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.changeset/eight-spoons-nail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@codeshift/cli': patch
3+
---
4+
5+
Updates babel config to fix cli issue

babel.config.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
module.exports = api => {
22
api.cache(true);
33
return {
4-
presets: ['@babel/preset-env', '@babel/preset-typescript'],
4+
presets: [
5+
[
6+
'@babel/preset-env',
7+
{
8+
targets: {
9+
esmodules: true,
10+
},
11+
},
12+
],
13+
'@babel/preset-typescript',
14+
],
515
};
616
};

0 commit comments

Comments
 (0)