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 = {
86
86
Use pascal case named exports in Vue SFC.
87
87
88
88
``` ts
89
- import { MyComponent } from ' ./MyComponent.vue'
90
- import { MyCard } from ' ./my-card.vue'
91
89
import { MyFooter } from ' ./my_footer.vue'
90
+ import { MyCard } from ' ./my-card.vue'
91
+ import { MyComponent } from ' ./MyComponent.vue'
92
92
```
93
93
94
94
### Options
Original file line number Diff line number Diff line change 1
- import { createUnplugin } from 'unplugin'
2
- import { babelParse , getLang } from 'ast-kit'
3
1
import { 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'
6
6
import { resolveName } from './core/utils'
7
7
import type * as t from '@babel/types'
8
8
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import type { VueLanguagePlugin } from '@vue/language-core'
5
5
const plugin : VueLanguagePlugin = ( { vueCompilerOptions } ) => {
6
6
return {
7
7
name : 'vue-named-export' ,
8
- version : 2 ,
8
+ version : 2.1 ,
9
9
resolveEmbeddedCode ( fileName , sfc , embeddedFile ) {
10
10
if ( embeddedFile . id !== 'script_ts' ) return
11
11
const exportedName = resolveName ( fileName )
Original file line number Diff line number Diff line change 1
1
import path from 'node:path'
2
- import { describe } from 'vitest'
3
2
import {
3
+ rollupBuild ,
4
4
RollupEsbuildPlugin ,
5
5
RollupRemoveVueFilePathPlugin ,
6
6
RollupVue ,
7
- rollupBuild ,
8
7
testFixtures ,
9
8
} from '@vue-macros/test-utils'
9
+ import { describe } from 'vitest'
10
10
import VueNamedExport from '../src/vite'
11
11
12
12
describe ( 'fixtures' , async ( ) => {
You can’t perform that action at this time.
0 commit comments