You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
856 B
25 lines
856 B
import { startStimulusApp } from '@symfony/stimulus-bundle'; |
|
import ArticleCommentsController from './controllers/article_comments_controller.js'; |
|
import CommentReplyController from './controllers/comment_reply_controller.js'; |
|
import CopyTextController from './controllers/copy_text_controller.js'; |
|
const app = startStimulusApp(); |
|
if (typeof app.debug === 'boolean') { |
|
app.debug = false; |
|
} |
|
|
|
// Ensure lazy comment loader is registered (Asset Mapper discovery can miss new files until rebuild). |
|
try { |
|
app.register('article-comments', ArticleCommentsController); |
|
} catch { |
|
/* already registered by the bundle */ |
|
} |
|
try { |
|
app.register('comment-reply', CommentReplyController); |
|
} catch { |
|
/* already registered by the bundle */ |
|
} |
|
try { |
|
app.register('copy-text', CopyTextController); |
|
} catch { |
|
/* already registered by the bundle */ |
|
}
|
|
|