Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Commit93f53fe
committed
bug#51065 [AssetMapper] Fixing import parsing from jsdelivr (weaverryan)
This PR was merged into the 6.3 branch.Discussion----------[AssetMapper] Fixing import parsing from jsdelivr| Q | A| ------------- | ---| Branch? | 6.3| Bug fix? | yes| New feature? | no| Deprecations? | no| Tickets | None - thanks to conversation with `@bendavies` on Slack!| License | MIT| Doc PR | n/aFound with:https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/+esmWith the `importmap:require --download` option, we parse those `import` statements to discover which dependencies we also need to download. If a package required 2 imports and both do *not* 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 as `jquery@3.7.0/+esm";import e from"/npm/popper.js@1.16.1/+esm`.Cheers!Commits-------9918d35 [AssetMapper] Fixing import parsing from jsdelivrFile tree
2 files changed
+21
-2
lines changed- src/Symfony/Component/AssetMapper
- ImportMap/Resolver
- Tests/ImportMap/Resolver
2 files changed
+21
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
132 | | - | |
133 | | - | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
237 | 255 | | |
0 commit comments
Comments
(0)