Skip to content

Commit 9450dbf

Browse files
committed
fixed the async action so it doesn't generate extra webpack files
1 parent bd697d4 commit 9450dbf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import FormlyForm from './FormlyForm.vue';
2+
import FormlyField from './FormlyField.vue';
23

34
export default function(Vue){
45
Vue.component('formly-form', FormlyForm);
6+
57
Vue.component('formly-field', (resolve) => {
68
/**
79
* FormlyField must be loaded asyncronously so that any fields added in
810
* via Formly.addType are available
911
*/
10-
require(['./FormlyField.vue'], resolve);
12+
resolve(FormlyField);
1113
});
1214
}

0 commit comments

Comments
 (0)