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

Listed the default condition as the last #16

Merged
merged 2 commits into from
Jan 31, 2023
Merged

Conversation

ijlee2
Copy link
Owner

@ijlee2 ijlee2 commented Jan 31, 2023

Background

While downstreaming the changes from #14 to ember-container-query, I realized that the default key must appear as last in the POJO for './*'. Otherwise, when we try to build the test-app, we will encounter errors like the one below:

ERROR in cache-233-webpack_bundler_ember_auto_import_webpack/app.cjs 20:82-141
Module not found: Error: Default condition should be last one

It feels counterintuitive (a technical risk) that the keys of an object have an order dependency.

References

To learn more about default:

@ijlee2 ijlee2 added the bug Something isn't working label Jan 31, 2023
@ijlee2 ijlee2 marked this pull request as ready for review January 31, 2023 22:43
@ijlee2 ijlee2 merged commit 8496d16 into main Jan 31, 2023
@ijlee2 ijlee2 deleted the bugfix-list-default-as-last branch January 31, 2023 22:44
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.

1 participant