symfony / flex

Composer plugin for Symfony
MIT License
4.17k stars 183 forks source link

[AssetMapper] Allow to define entrypoint in importmap.php #1026

Open Jibbarth opened 5 months ago

Jibbarth commented 5 months ago

Hello :wave:

I wanted that one of my package to be able to define an asset as entrypoint inside importmap.php to be allow call importmap('@mypackage/entry.js') inside a template of the package.

I made a naive modification, not sure if it was the purpose of the [symfony][entrypoints] node of the package.json.

Maybe it would be fit directly inside the [symfony][importmap] node.

WDYT ?