1+ import { defineAsyncComponent } from 'vue' ;
12import RevealerFieldtype from '../components/fieldtypes/RevealerFieldtype.vue' ;
23import TemplateFieldtype from '../components/fieldtypes/TemplateFieldtype.vue' ;
34import Select from '../components/inputs/Select.vue' ;
@@ -12,12 +13,9 @@ import ArrayFieldtype from '../components/fieldtypes/ArrayFieldtype.vue';
1213import AssetsFieldtype from '../components/fieldtypes/assets/AssetsFieldtype.vue' ;
1314import AssetsIndexFieldtype from '../components/fieldtypes/assets/AssetsIndexFieldtype.vue' ;
1415import AssetFolderFieldtype from '../components/fieldtypes/AssetFolderFieldtype.vue' ;
15- import BardFieldtype from '../components/fieldtypes/bard/BardFieldtype.vue' ;
16- import BardSet from '../components/fieldtypes/bard/Set.vue' ;
1716import BardButtonsSettingFieldtype from '../components/fieldtypes/bard/BardButtonsSettingFieldtype.vue' ;
1817import ButtonGroupFieldtype from '../components/fieldtypes/ButtonGroupFieldtype.vue' ;
1918import CheckboxesFieldtype from '../components/fieldtypes/CheckboxesFieldtype.vue' ;
20- import CodeFieldtype from '../components/fieldtypes/CodeFieldtype.vue' ;
2119import Routes from '../components/collections/Routes.vue' ;
2220import TitleFormats from '../components/collections/TitleFormats.vue' ;
2321import ColorFieldtype from '../components/fieldtypes/ColorFieldtype.vue' ;
@@ -40,7 +38,6 @@ import IntegerFieldtype from '../components/fieldtypes/IntegerFieldtype.vue';
4038import LinkFieldtype from '../components/fieldtypes/LinkFieldtype.vue' ;
4139import ListFieldtype from '../components/fieldtypes/ListFieldtype.vue' ;
4240import ListIndexFieldtype from '../components/fieldtypes/ListIndexFieldtype.vue' ;
43- import MarkdownFieldtype from '../components/fieldtypes/markdown/MarkdownFieldtype.vue' ;
4441import MarkdownButtonsSettingFieldtype from '../components/fieldtypes/markdown/MarkdownButtonsSettingFieldtype.vue' ;
4542import RadioFieldtype from '../components/fieldtypes/RadioFieldtype.vue' ;
4643import RangeFieldtype from '../components/fieldtypes/RangeFieldtype.vue' ;
@@ -61,7 +58,6 @@ import ToggleFieldtype from '../components/fieldtypes/ToggleFieldtype.vue';
6158import ToggleIndexFieldtype from '../components/fieldtypes/ToggleIndexFieldtype.vue' ;
6259import WidthFieldtype from '../components/fieldtypes/WidthFieldtype.vue' ;
6360import VideoFieldtype from '../components/fieldtypes/VideoFieldtype.vue' ;
64- import YamlFieldtype from '../components/fieldtypes/YamlFieldtype.vue' ;
6561import SetPicker from '../components/fieldtypes/replicator/SetPicker.vue' ;
6662import SetField from '../components/fieldtypes/replicator/Field.vue' ;
6763
@@ -78,12 +74,21 @@ export default function registerFieldtypes(app) {
7874 app . component ( 'assets-fieldtype' , AssetsFieldtype ) ;
7975 app . component ( 'assets-fieldtype-index' , AssetsIndexFieldtype ) ;
8076 app . component ( 'asset_folder-fieldtype' , AssetFolderFieldtype ) ;
81- app . component ( 'bard-fieldtype' , BardFieldtype ) ;
82- app . component ( 'bard-fieldtype-set' , BardSet ) ;
77+ app . component (
78+ 'bard-fieldtype' ,
79+ defineAsyncComponent ( ( ) => import ( '../components/fieldtypes/bard/BardFieldtype.vue' ) ) ,
80+ ) ;
81+ app . component (
82+ 'bard-fieldtype-set' ,
83+ defineAsyncComponent ( ( ) => import ( '../components/fieldtypes/bard/Set.vue' ) ) ,
84+ ) ;
8385 app . component ( 'bard_buttons_setting-fieldtype' , BardButtonsSettingFieldtype ) ;
8486 app . component ( 'button_group-fieldtype' , ButtonGroupFieldtype ) ;
8587 app . component ( 'checkboxes-fieldtype' , CheckboxesFieldtype ) ;
86- app . component ( 'code-fieldtype' , CodeFieldtype ) ;
88+ app . component (
89+ 'code-fieldtype' ,
90+ defineAsyncComponent ( ( ) => import ( '../components/fieldtypes/CodeFieldtype.vue' ) ) ,
91+ ) ;
8792 app . component ( 'collection_routes-fieldtype' , Routes ) ;
8893 app . component ( 'collection_title_formats-fieldtype' , TitleFormats ) ;
8994 app . component ( 'color-fieldtype' , ColorFieldtype ) ;
@@ -106,7 +111,10 @@ export default function registerFieldtypes(app) {
106111 app . component ( 'link-fieldtype' , LinkFieldtype ) ;
107112 app . component ( 'list-fieldtype' , ListFieldtype ) ;
108113 app . component ( 'list-fieldtype-index' , ListIndexFieldtype ) ;
109- app . component ( 'markdown-fieldtype' , MarkdownFieldtype ) ;
114+ app . component (
115+ 'markdown-fieldtype' ,
116+ defineAsyncComponent ( ( ) => import ( '../components/fieldtypes/markdown/MarkdownFieldtype.vue' ) ) ,
117+ ) ;
110118 app . component ( 'markdown_buttons_setting-fieldtype' , MarkdownButtonsSettingFieldtype ) ;
111119 app . component ( 'radio-fieldtype' , RadioFieldtype ) ;
112120 app . component ( 'range-fieldtype' , RangeFieldtype ) ;
@@ -128,7 +136,10 @@ export default function registerFieldtypes(app) {
128136 app . component ( 'toggle-fieldtype-index' , ToggleIndexFieldtype ) ;
129137 app . component ( 'width-fieldtype' , WidthFieldtype ) ;
130138 app . component ( 'video-fieldtype' , VideoFieldtype ) ;
131- app . component ( 'yaml-fieldtype' , YamlFieldtype ) ;
139+ app . component (
140+ 'yaml-fieldtype' ,
141+ defineAsyncComponent ( ( ) => import ( '../components/fieldtypes/YamlFieldtype.vue' ) ) ,
142+ ) ;
132143 app . component ( 'set-picker' , SetPicker ) ;
133144 app . component ( 'set-field' , SetField ) ;
134145 app . component ( 'revealer-fieldtype' , RevealerFieldtype ) ;
0 commit comments