Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[AssetMapper] Fixing import parsing from jsdelivr#51065

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@weaverryan
Copy link
Member

QA
Branch?6.3
Bug fix?yes
New feature?no
Deprecations?no
TicketsNone - thanks to conversation with@bendavies on Slack!
LicenseMIT
Doc PRn/a

Found with:https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/+esm

With theimportmap:require --download option, we parse thoseimport statements to discover which dependencies we also need to download. If a package required 2 imports and both donot have an@ in their name (i.e. a namespaced package), the regex matched both package strings as a single package - so it would see the package name asjquery@3.7.0/+esm";import e from"/npm/popper.js@1.16.1/+esm.

Cheers!

If a package imported 2x other packages, both where the package had nonamespace (i.e. no "@" in the name), the 2 packages would be matched as one incorrectly.
@bendavies
Copy link
Contributor

nice!

@nicolas-grekas
Copy link
Member

Thank you@weaverryan.

@nicolas-grekasnicolas-grekas merged commit93f53fe intosymfony:6.3Jul 21, 2023
@weaverryanweaverryan deleted the asset-mapper-jsdelivr-regex branchJuly 21, 2023 17:52
@fabpotfabpot mentioned this pull requestJul 30, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

6.3

Development

Successfully merging this pull request may close these issues.

4 participants

@weaverryan@bendavies@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp