Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow arbitrary extensions for app-imports #602

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

simonihmig
Copy link
Contributor

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.

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.
@simonihmig simonihmig added the bug Something isn't working label Nov 28, 2023
@simonihmig simonihmig requested review from ef4 and mansona November 29, 2023 00:13
Copy link
Member

@mansona mansona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems reasonable to me 👍

@mansona mansona merged commit 79ab6ce into main Nov 29, 2023
119 checks passed
@mansona mansona deleted the allow-appimport-arbitrary-ext branch November 29, 2023 11:44
@github-actions github-actions bot mentioned this pull request Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants