File tree Expand file tree Collapse file tree 7 files changed +14
-14
lines changed
Expand file tree Collapse file tree 7 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 55 */
66
77export {
8- scanFiles ,
98 scanEnums ,
10- type ScanOptions ,
11- type EnumMember ,
12- type EnumDeclaration ,
9+ scanFiles ,
1310 type EnumData ,
11+ type EnumDeclaration ,
12+ type EnumMember ,
13+ type ScanOptions ,
1414} from './core/enum'
1515
16- export { type Options , resolveOptions } from './core/options'
16+ export { resolveOptions , type Options } from './core/options'
Original file line number Diff line number Diff line change 1- import path from 'node:path'
21import assert from 'node:assert'
32import { readFileSync } from 'node:fs'
4- import { execaSync } from 'execa '
3+ import path from 'node:path '
54import { babelParse , getLang , isTs } from 'ast-kit'
5+ import { execaSync } from 'execa'
66import fg from 'fast-glob'
77import picomatch from 'picomatch'
8- import type { Expression , PrivateName } from '@babel/types'
98import type { OptionsResolved } from './options'
9+ import type { Expression , PrivateName } from '@babel/types'
1010
1111/**
1212 * Represents the scan options for the enum.
Original file line number Diff line number Diff line change 33 * @module
44 */
55
6- import { type UnpluginInstance , createUnplugin } from 'unplugin'
76import { createFilter } from '@rollup/pluginutils'
87import MagicString from 'magic-string'
8+ import { createUnplugin , type UnpluginInstance } from 'unplugin'
99import ReplacePlugin from 'unplugin-replace'
10- import { type Options , resolveOptions } from './core/options'
1110import { scanEnums } from './core/enum'
11+ import { resolveOptions , type Options } from './core/options'
1212
1313/**
1414 * The main unplugin instance.
Original file line number Diff line number Diff line change 11import path from 'node:path'
2- import { expect , test } from 'vitest'
32import { build } from 'esbuild'
3+ import { expect , test } from 'vitest'
44import UnpluginInlineEnum from '../src/esbuild'
55
66test ( 'esbuild' , async ( ) => {
Original file line number Diff line number Diff line change 11import path from 'node:path'
2+ import { rollupBuild , RollupEsbuildPlugin } from '@vue-macros/test-utils'
23import { expect , test } from 'vitest'
3- import { RollupEsbuildPlugin , rollupBuild } from '@vue-macros/test-utils'
44import UnpluginInlineEnum from '../src/rollup'
55
66test ( 'rollup' , async ( ) => {
Original file line number Diff line number Diff line change 11import path from 'node:path'
22import { describe , expect , test } from 'vitest'
3- import { type EnumData , scanEnums } from '../src/core/enum'
3+ import { scanEnums , type EnumData } from '../src/core/enum'
44import type { OptionsResolved } from '../src/core/options'
55
66describe ( 'scanEnums' , ( ) => {
Original file line number Diff line number Diff line change 11import path from 'node:path'
2- import { expect , test } from 'vitest'
32import { build } from 'vite'
3+ import { expect , test } from 'vitest'
44import UnpluginInlineEnum from '../src/vite'
55import type { RollupOutput } from 'rollup'
66
You can’t perform that action at this time.
0 commit comments