@@ -279,34 +279,32 @@ You can update your third-party packages to their current versions by running:
279
279
The ``importmap:install `` and ``importmap:outdated `` commands were introduced
280
280
in Symfony 6.4.
281
281
282
- Removing Packages from importmap
283
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
284
-
285
- If you need to remove a JavaScript package that was previously added to your ``importmap.php `` file, you can use the ``importmap:remove `` command.
286
-
287
- .. code-block :: terminal
288
-
289
- $ php bin/console importmap:remove <package>
282
+ Removing JavaScript Packages
283
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
290
284
291
- For example, to remove the ``lodash `` package from your importmap:
285
+ If you need to remove a JavaScript package that was previously added to your
286
+ ``importmap.php `` file, use the ``importmap:remove `` command. For example, to
287
+ remove the ``lodash `` package:
292
288
293
289
.. code-block :: terminal
294
290
295
291
$ php bin/console importmap:remove lodash
296
292
297
- This will update your ``importmap.php `` file and remove the specified package (and any dependencies added along with it).
298
- After running this command, it is recommended to also run:
293
+ This updates your ``importmap.php `` file and removes the specified package
294
+ (along with any dependencies that were added with it).
295
+
296
+ After running this command, it's recommended to also run the following to ensure
297
+ that your ``assets/vendor/ `` directory is in sync with the updated import map:
299
298
300
299
.. code-block :: terminal
301
300
302
301
$ php bin/console importmap:install
303
302
304
- This ensures your ``assets/vendor/ `` directory is in sync with the updated importmap configuration.
305
-
306
303
.. tip ::
307
304
308
- Removing a package from the importmap does not automatically remove any references to it in your JavaScript files.
309
- Make sure to update your code to remove any ``import `` statements that reference the removed package.
305
+ Removing a package from the import map does not automatically remove any
306
+ references to it in your JavaScript files. Make sure to update your code and
307
+ remove any ``import `` statements that reference the removed package.
310
308
311
309
How does the importmap Work?
312
310
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments