Skip to content

Commit 13b7f73

Browse files
committed
Add sample code for dynamic load
1 parent 7f051f7 commit 13b7f73

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import LoginDialog from './components/LoginDialog.vue'
99
import I18nPlugin from './plugins/gettext.js'
1010
Vue.use(I18nPlugin)
1111

12+
// Dynamic import
13+
// import('yix-engineer/src/lib.js')
14+
// .then(EngineerPlugin => Vue.use(EngineerPlugin))
1215
import EngineerPlugin from 'yix-engineer/src/lib.js'
1316
Vue.use(EngineerPlugin)
1417

0 commit comments

Comments
 (0)