Skip to content

Commit

Permalink
Fix babel.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alabsi91 committed Oct 23, 2023
1 parent 670fa64 commit ed81e10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ module.exports = function (api) {

const alias = {};
for (const key in paths) {
const aliasName = key.replace(/\/\*$/, '');
const aliasPath = paths[key][0].replace(/\/\*$/, '/');
alias[aliasName] = (aliasPath.startsWith('./') ? aliasPath : './' + aliasPath) + '.js';
const aliasName = key.replace(/\/\*$/, ''); // replace '/*' with '' at the end
const aliasPath = paths[key][0].replace(/\/\*$/, '/'); // replace '/*' with '/' at the end
alias[aliasName] = aliasPath.startsWith('./') ? aliasPath : './' + aliasPath;
}

const browsers = [
Expand Down

0 comments on commit ed81e10

Please sign in to comment.