Skip to content

Commit

Permalink
Merge pull request #602 from embroider-build/allow-appimport-arbitrar…
Browse files Browse the repository at this point in the history
…y-ext

Allow arbitrary extensions for app-imports
  • Loading branch information
mansona authored Nov 29, 2023
2 parents 971988f + 790ab57 commit 79ab6ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ember-auto-import/ts/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ export default class WebpackBundler extends Plugin implements Bundler {
*withResolvableExtensions(
importSpecifier: string
): Generator<string, void, void> {
if (importSpecifier.match(/\.\w{1,3}$/)) {
if (importSpecifier.match(/\.\w+$/)) {
yield importSpecifier;
} else {
for (let ext of EXTENSIONS) {
Expand Down

0 comments on commit 79ab6ce

Please sign in to comment.