File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 11# CHANGELOG
22
3+ ## 3.1.0
4+
5+ * Automatically enabled Stimulus's "debug" mode when doing a dev build. You will
6+ now, while developing, see debugging information in your browser's console log!
7+ See #65 .
8+
39## 3.0.0
410
511Dropped support for ` stimulus ` 2.0, in favor of ` @hotwired/stimulus ` version 3.
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ function identifierForContextKey(key) {
3131
3232function startStimulusApp ( context ) {
3333 const application = Application . start ( ) ;
34+ if ( process . env . NODE_ENV === 'development' ) {
35+ application . debug = true ;
36+ }
3437 if ( context ) {
3538 application . load ( definitionsFromContext ( context ) ) ;
3639 }
Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ import symfonyControllers from './webpack/loader!@symfony/stimulus-bridge/contro
2020export function startStimulusApp ( context : any ) {
2121 const application = Application . start ( ) ;
2222
23+ if ( process . env . NODE_ENV === 'development' ) {
24+ application . debug = true ;
25+ }
26+
2327 if ( context ) {
2428 application . load ( definitionsFromContext ( context ) ) ;
2529 }
You can’t perform that action at this time.
0 commit comments