diff --git a/frontend/encore/simple-example.rst b/frontend/encore/simple-example.rst
index 21a3bad9093..b048d1b98dc 100644
--- a/frontend/encore/simple-example.rst
+++ b/frontend/encore/simple-example.rst
@@ -317,6 +317,11 @@ split to *separate* files by Encore. Then, those files won't be downloaded until
the moment a matching element (e.g. ``
``)
appears on the page!
+.. note::
+
+ If you write your controllers using TypeScript, make sure
+ ``removeComments`` is not set to ``true`` in your TypeScript config.
+
.. _multiple-javascript-entries:
Multiple Entries
diff --git a/frontend/ux.rst b/frontend/ux.rst
index 41bc1d582a3..959d3aab035 100644
--- a/frontend/ux.rst
+++ b/frontend/ux.rst
@@ -131,6 +131,11 @@ To make one of your custom controllers lazy, add a special comment on top:
To make a third-party controller lazy, in ``assets/controllers.json``, set
``fetch`` to ``lazy``.
+.. note::
+
+ If you write your controllers using TypeScript, make sure
+ ``removeComments`` is not set to ``true`` in your TypeScript config.
+
More Advanced Setup
-------------------
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy