Skip to content

Commit

Permalink
fix babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
smmoosavi committed May 7, 2024
1 parent b90e8f8 commit 1018a20
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ module.exports = function getBabelConfig(api) {
filenameIncludes: 'src/AdapterDateFnsV3/',
},
]);
plugins.push([
'babel-plugin-replace-imports',
{
test: /date-fns-jalali/i,
replacer: 'date-fns-jalali-v3',
// This option is provided by the `patches/[email protected]` patch
filenameIncludes: 'src/AdapterDateFnsJalaliV3/',
},
'replace-date-fns-jalali-imports',
]);
}

if (process.env.NODE_ENV === 'production') {
Expand Down

0 comments on commit 1018a20

Please sign in to comment.