Skip to content

Commit

Permalink
refactor: Change babel.config.js to use anonymous function
Browse files Browse the repository at this point in the history
  • Loading branch information
justinhartman committed Nov 24, 2022
1 parent f4aefcd commit bc6d737
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
module.exports = function(api) {
/**
* Babel configuration.
*
* @param api
* @returns {{presets: string[]}}
*/
module.exports = api => {
api.cache(true);
return {
presets: ['babel-preset-expo'],
Expand Down

0 comments on commit bc6d737

Please sign in to comment.