Skip to content

Commit

Permalink
🔧 Updates babel config to fix CLI issue
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldelcore committed May 31, 2021
1 parent 07212c0 commit 9f1d028
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eight-spoons-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@codeshift/cli': patch
---

Updates babel config to fix cli issue
12 changes: 11 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
module.exports = api => {
api.cache(true);
return {
presets: ['@babel/preset-env', '@babel/preset-typescript'],
presets: [
[
'@babel/preset-env',
{
targets: {
esmodules: true,
},
},
],
'@babel/preset-typescript',
],
};
};

0 comments on commit 9f1d028

Please sign in to comment.