Skip to content

Commit

Permalink
dev: remove extensions from Vite aliases
Browse files Browse the repository at this point in the history
This started causing issues as we are transitioning to TS. By removing the file extension, Vite is able to pick up the correct file.
  • Loading branch information
aduh95 committed Dec 18, 2023
1 parent fefcb1c commit c7bb57b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion private/dev/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const config = {
replacement: `${PACKAGES_ROOT}@uppy/$1/src/index`,
},
{
find: /^@uppy\/([^/]+)\/lib\/(.+)$/,
find: /^@uppy\/([^/]+)\/lib\/(.+?)(\.js)?$/,
replacement: `${PACKAGES_ROOT}@uppy/$1/src/$2`,
},
// {
Expand Down

0 comments on commit c7bb57b

Please sign in to comment.