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

fix: read other import map paths when one doesn't exist #268

Merged
merged 2 commits into from
Dec 19, 2022

Conversation

eduardoboucas
Copy link
Member

Which problem is this pull request solving?

Fixes a bug in #265 that prevents additional import map paths from being read when one points to a non-existing file.

@eduardoboucas eduardoboucas added the type: bug code to address defects in shipped code label Dec 19, 2022
@eduardoboucas eduardoboucas requested a review from a team December 19, 2022 16:56
@@ -124,7 +124,7 @@ class ImportMap {
async addFiles(paths: (string | undefined)[], logger: Logger) {
for (const path of paths) {
if (path === undefined) {
return
continue
Copy link
Member Author

Choose a reason for hiding this comment

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

🙈

khendrikse
khendrikse previously approved these changes Dec 19, 2022
Copy link
Contributor

@khendrikse khendrikse left a comment

Choose a reason for hiding this comment

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

til about continue

@eduardoboucas eduardoboucas merged commit 8410c1c into main Dec 19, 2022
@eduardoboucas eduardoboucas deleted the fix/import-map-addfiles branch December 19, 2022 17:26
Skn0tt pushed a commit to netlify/build that referenced this pull request Apr 23, 2024
…-bundler#268)

* fix: read other import map paths when one doesn't exist

* chore: fix test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants