@@ -23,23 +23,6 @@ const iconMap = {
2323 mdi : 'mdi-v4'
2424}
2525
26- const components = [
27- 'QLayout' ,
28- 'QHeader' ,
29- 'QDrawer' ,
30- 'QPageContainer' ,
31- 'QPage' ,
32- 'QToolbar' ,
33- 'QToolbarTitle' ,
34- 'QBtn' ,
35- 'QIcon' ,
36- 'QList' ,
37- 'QItem' ,
38- 'QItemSection' ,
39- 'QItemLabel'
40- ]
41-
42- const directives = [ ]
4326const plugins = [ ]
4427
4528module . exports = ( api , opts ) => {
@@ -83,7 +66,7 @@ module.exports = (api, opts) => {
8366 pluginOptions . quasar = Object . assign (
8467 pluginOptions . quasar || { } ,
8568 {
86- importStrategy : opts . quasar . importStrategy ,
69+ importStrategy : 'kebab' ,
8770 rtlSupport : opts . quasar . rtlSupport
8871 }
8972 )
@@ -122,7 +105,6 @@ module.exports = (api, opts) => {
122105 let lines = `import Vue from 'vue'\n`
123106
124107 const
125- autoImport = opts . quasar . importStrategy !== 'manual' ,
126108 hasIconSet = opts . quasar . iconSet !== 'material-icons' ,
127109 hasLang = opts . quasar . lang !== 'en-us'
128110
@@ -158,47 +140,12 @@ module.exports = (api, opts) => {
158140 } )
159141
160142 // build import
161- if ( autoImport ) {
162- lines += `\nimport { Quasar } from 'quasar'`
163- }
164- else {
165- lines += `\nimport {\n Quasar, `
166- components
167- . concat ( directives )
168- . concat ( plugins )
169- . forEach ( part => {
170- lines += `\n ${ part } ,`
171- } )
172- lines += `\n}`
173- lines += ` from 'quasar'`
174- }
143+ lines += `\nimport { Quasar } from 'quasar'`
175144
176145 // build Vue.use()
177146 lines += `\n\nVue.use(Quasar, {`
178147 lines += `\n config: {}`
179148
180- lines += ',\n components: {'
181- if ( autoImport ) {
182- lines += ` /* not needed if importStrategy is not 'manual' */ }`
183- }
184- else {
185- components . forEach ( part => {
186- lines += `\n ${ part } ,`
187- } )
188- lines += `\n }`
189- }
190-
191- lines += ',\n directives: {'
192- if ( autoImport ) {
193- lines += ` /* not needed if importStrategy is not 'manual' */ }`
194- }
195- else {
196- directives . forEach ( part => {
197- lines += `\n ${ part } ,`
198- } )
199- lines += `\n }`
200- }
201-
202149 lines += ',\n plugins: {'
203150 plugins . forEach ( part => {
204151 lines += `\n ${ part } ,`
0 commit comments