diff options
Diffstat (limited to 'app/assets/javascripts/pages/shared/wikis/async_edit.js')
-rw-r--r-- | app/assets/javascripts/pages/shared/wikis/async_edit.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/assets/javascripts/pages/shared/wikis/async_edit.js b/app/assets/javascripts/pages/shared/wikis/async_edit.js new file mode 100644 index 00000000000..4536a076568 --- /dev/null +++ b/app/assets/javascripts/pages/shared/wikis/async_edit.js @@ -0,0 +1,11 @@ +export const mountApplications = async () => { + const el = document.querySelector('.js-wiki-edit-page'); + + if (el) { + const { mountApplications: mountEditApplications } = await import( + /* webpackChunkName: 'wiki_edit' */ './edit' + ); + + mountEditApplications(); + } +}; |