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
Let's say you're using a library like StimulusJS which requires that the application be initialized and then needs controllers mapped into the main application.
Currently the import map tag is rendered by itself, and then you need to create a separate <script type="module"> to then initialize the JS. This is a bit cumbersome and because it's detached from the import map that's generated. The natural flow feels like the module script tag should be able to be generated from within the configuration block for the AssetPipeline and then the js files that are being pinned can be referenced in the import statements.
The text was updated successfully, but these errors were encountered:
Let's say you're using a library like StimulusJS which requires that the application be initialized and then needs controllers mapped into the main application.
Currently the import map tag is rendered by itself, and then you need to create a separate
<script type="module">
to then initialize the JS. This is a bit cumbersome and because it's detached from the import map that's generated. The natural flow feels like the module script tag should be able to be generated from within the configuration block for the AssetPipeline and then the js files that are being pinned can be referenced in the import statements.The text was updated successfully, but these errors were encountered: