You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug symfony#52508 [AssetMapper] Fix jsdelivr import parsing with no imported value (weaverryan)
This PR was merged into the 6.4 branch.
Discussion
----------
[AssetMapper] Fix jsdelivr import parsing with no imported value
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fixsymfony#52467
| License | MIT
Another new import syntax found by `@tacman`! I think this one is kind of a bug in the library - a module environment should not `import 'foo'` (i.e. import a module and not actually use any value), but our job is just to find these, not judge them ;).
FYI - I have an issue on jsdelivr proposing that they create an API endpoint to expose this info, so we don't need to parse it. They agree and already were thinking about this - jsdelivr/jsdelivr#18538 - so this may be something helpful in the future.
Cheers!
Commits
-------
dc1b27d [AssetMapper] Adding import regex support for not importing any value
yield'multiple imports and exports with and without values' => [
541
+
'import"/npm/jquery@3.7.1/+esm";import e from"/npm/datatables.net-bs5@1.13.7/+esm";export{default}from"/npm/datatables.net-bs5@1.13.7/+esm";import"/npm/datatables.net-select@1.7.0/+esm";
0 commit comments