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: use import maps in config evaluation #166

Merged
merged 3 commits into from
Oct 19, 2022
Merged

Conversation

eduardoboucas
Copy link
Member

Which problem is this pull request solving?

#133 added support for a config export, which we evaluate at build time to extract a configuration object. Currently, we're not using any import maps when doing this invocation, any specifiers that we can't process (even if they're not used by the config function itself) will throw an error.

This PR addresses that by evaluating the config export with the same import maps as the runtime evaluation.

@eduardoboucas eduardoboucas added the type: bug code to address defects in shipped code label Oct 19, 2022
@eduardoboucas eduardoboucas requested a review from a team October 19, 2022 10:51
@eduardoboucas eduardoboucas merged commit 8e5ab76 into main Oct 19, 2022
@eduardoboucas eduardoboucas deleted the fix/config-import-map branch October 19, 2022 19:57
Skn0tt pushed a commit to netlify/build that referenced this pull request Apr 23, 2024
* fix: use import maps in config evaluation

* chore: add missing import to test

* chore: update 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