embroider-build / ember-auto-import

Zero config import from npm packages
Other
360 stars 109 forks source link

Allow arbitrary extensions for app-imports #602

Closed simonihmig closed 10 months ago

simonihmig commented 10 months ago

With a config like allowAppImports: ['images/**/*.webp'] and importing a file like image.webp, eai would fail to handle that import properly, as it assumes that explicit extensions would be 1-3 characters long.

With a proper webpack loader we can make it import any type of file, so we shouldn't make assumptions about the possible extensions.