archesproject / arches

Arches is a web platform for creating, managing, & visualizing geospatial data. Arches was inspired by the needs of the Cultural Heritage community, particularly the widespread need of organizations to build & manage cultural heritage inventories
GNU Affero General Public License v3.0
210 stars 139 forks source link

Allow import of modules with unspecified js/mjs extensions #10992 #11089

Closed chiatt closed 4 days ago

chiatt commented 1 week ago

Types of changes

Description of Change

Allows import of js dependencies even if their import statements don't declare a file extension (.js or .mjs) when their type is set to 'module'. https://github.com/webpack/webpack/issues/11467#issuecomment-691702706 https://webpack.js.org/configuration/module/#resolvefullyspecified

Issues Solved

Closes #10992

Checklist

chiatt commented 1 week ago

lgtm! 👍

Thanks @chrabyrd. There does seem to be an issue with one of the packages used by AFS. @aarongundel and I are still testing to confirm it's not related to this change.

chrabyrd commented 1 week ago

After chatting w/ @aarongundel it looks like this change may not be necessary 👍