nl_tokens: Generate the single file component . Return the component file info structure : <template > ... < / template > <script > ... < / script > <style > ... < / style >
pl_tokens: function generateSFC ( file , options ) { let { subFiles } = file ; if ( ! subFiles || ! subFiles . length ) { subFiles = [ file ] ; } let result = '' ; let componentConfig = file . isNativeComponent ? file . importComponents : getComponentConfig ( subFiles ) ; subFiles . forEach ( ( <mask> , idx ) => { if ( item . isScript ) { result += wrapContent ( 'script' , item ) ; } else if ( item . isStyle ) { result += wrapContent ( 'style' , item ) ; } else if ( item . isTpl ) { result += wrapContent ( 'template' , item ) ; result = addImportComponents ( result , componentConfig ) ; } } ) ; return { content : result } ; }