8000 Merge branch '6.0' into 6.1 · symfony/symfony-docs@7688eb5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7688eb5

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: [Frontend] Add a note about stimulusFetch & TypeScript config
2 parents dc15ca3 + 37e91e6 commit 7688eb5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

frontend/encore/simple-example.rst

Lines changed: 5 additions & 0 deletions
< 8000 /div>
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,11 @@ split to *separate* files by Encore. Then, those files won't be downloaded until
317317
the moment a matching element (e.g. ``<div data-controller="lazy-example">``)
318318
appears on the page!
319319

320+
.. note::
321+
322+
If you write your controllers using TypeScript, make sure
323+
``removeComments`` is not set to ``true`` in your TypeScript config.
324+
320325
.. _multiple-javascript-entries:
321326

322327
Multiple Entries

frontend/ux.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ To make one of your custom controllers lazy, add a special comment on top:
131131
To make a third-party controller lazy, in ``assets/controllers.json``, set
132132
``fetch`` to ``lazy``.
133133

134+
.. note::
135+
136+
If you write your controllers using TypeScript, make sure
137+
``removeComments`` is not set to ``true`` in your TypeScript config.
138+
134139
More Advanced Setup
135140
-------------------
136141

0 commit comments

Comments
 (0)
0