File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -86,9 +86,9 @@ module.exports = {
8686Use pascal case named exports in Vue SFC.
8787
8888``` ts
89- import { MyComponent } from ' ./MyComponent.vue'
90- import { MyCard } from ' ./my-card.vue'
9189import { MyFooter } from ' ./my_footer.vue'
90+ import { MyCard } from ' ./my-card.vue'
91+ import { MyComponent } from ' ./MyComponent.vue'
9292```
9393
9494### Options
Original file line number Diff line number Diff line change 1- import { createUnplugin } from 'unplugin'
2- import { babelParse , getLang } from 'ast-kit'
31import { createFilter } from '@rollup/pluginutils'
4- import { MagicString , generateTransform } from 'magic-string-ast'
5- import { type Options , resolveOption } from './core/options'
2+ import { babelParse , getLang } from 'ast-kit'
3+ import { generateTransform , MagicString } from 'magic-string-ast'
4+ import { createUnplugin } from 'unplugin'
5+ import { resolveOption , type Options } from './core/options'
66import { resolveName } from './core/utils'
77import type * as t from '@babel/types'
88
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import type { VueLanguagePlugin } from '@vue/language-core'
55const plugin : VueLanguagePlugin = ( { vueCompilerOptions } ) => {
66 return {
77 name : 'vue-named-export' ,
8- version : 2 ,
8+ version : 2.1 ,
99 resolveEmbeddedCode ( fileName , sfc , embeddedFile ) {
1010 if ( embeddedFile . id !== 'script_ts' ) return
1111 const exportedName = resolveName ( fileName )
Original file line number Diff line number Diff line change 11import path from 'node:path'
2- import { describe } from 'vitest'
32import {
3+ rollupBuild ,
44 RollupEsbuildPlugin ,
55 RollupRemoveVueFilePathPlugin ,
66 RollupVue ,
7- rollupBuild ,
87 testFixtures ,
98} from '@vue-macros/test-utils'
9+ import { describe } from 'vitest'
1010import VueNamedExport from '../src/vite'
1111
1212describe ( 'fixtures' , async ( ) => {
You can’t perform that action at this time.
0 commit comments