Skip to content

Keep options when updating packages in importmap #310

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

Merged
merged 5 commits into from
Jul 31, 2025

Conversation

rafaelfranca
Copy link
Member

The only option that is relevant to keep is the preload option.

Not all cases are kept though. If the option is set to a variable or complex expression, it is not kept. Only simple values like true, false, or a string/array of strings are preserved.

Fixes #307

This make sure we are not duplicating the same regexp in multiple places
with slightly different variations.
No need to exclude `[` or `]`.
The only option that is relevant to keep is the `preload` option.

Not all cases are kept though. If the option is set to a variable or
complex expression, it is not kept. Only simple values like `true`, `false`,
or a string/array of strings are preserved.
@rafaelfranca rafaelfranca merged commit ae67187 into main Jul 31, 2025
68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

importmap update removes preload option
1 participant