Unlock this challenge:
How is Turbo activated when using the symfony/ux-turbo package?
symfony/ux-turbo
When you install symfony/ux-turbo, it adds a dummy stimulus controller to controllers.json file that imports @hotwired/turbo.
controllers.json
@hotwired/turbo
Turbo is automatically added to your codebase when you use webpack encore and have @hotwired/turbo installed via packacke.json.
packacke.json
It doesn't work out of the box. You need to import Turbo on all of your files or in assets/bootstrap.js. This way, you can selectively choose which parts of your website use Turbo and which don't.
assets/bootstrap.js