Skip to content

Commit

Permalink
fix: unexpected token '.' on project root (#18)
Browse files Browse the repository at this point in the history
* fix: unexpected token . on project root

* refactor: apply prettier fixes

Co-authored-by: dannyhw <[email protected]>
  • Loading branch information
lacsinagramar and dannyhw authored Nov 25, 2021
1 parent b1205f3 commit c8693a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ module.exports = {
);

const babelPlugins = getBabelPlugins(options);
const root = options?.projectRoot ?? process.cwd();
const root = (options && options.projectRoot) || process.cwd();
const modules = [
...DEFAULT_INCLUDES,
...(options?.modulesToTranspile || []),
...((options && options.modulesToTranspile) || []),
];

// fix for uncompiled react-native dependencies
Expand Down

0 comments on commit c8693a7

Please sign in to comment.