Skip to content

Commit 33d1c8d

Browse files
committed
minor #2347 [StimulusBundle][Doc] Mention removeComments will no longer be necessary (MatTheCat)
This PR was merged into the 2.x branch. Discussion ---------- [StimulusBundle][Doc] Mention `removeComments` will no longer be necessary | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Issues | N/A | License | MIT Once #2304 is released, it will no longer be necessary to set `removeComments` to `false` when using TypeScript, because the `stimulusFetch: 'lazy'` comment will be searched in the source rather than the compiled content. Commits ------- a422be1 [StimulusBundle][Doc] Mention `removeComments` will no longer be necessary
2 parents 18a4b4e + a422be1 commit 33d1c8d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/StimulusBundle/doc/index.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,9 @@ To make a third-party controller lazy, in ``assets/controllers.json``, set
157157

158158
.. note::
159159

160-
If you write your controllers using TypeScript, make sure
161-
``removeComments`` is not set to ``true`` in your TypeScript config.
160+
If you write your controllers using TypeScript and you're using
161+
StimulusBundle ≤ 2.21.0, make sure ``removeComments`` is not set
162+
to ``true`` in your TypeScript config.
162163

163164
Stimulus Tools around the World
164165
-------------------------------

0 commit comments

Comments
 (0)