Skip to content

Commit

Permalink
refactor: rename resolveOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Mar 3, 2024
1 parent d57d583 commit 264f2c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type OptionsResolved = Overwrite<
Pick<Options, 'enforce'>
>

export function resolveOption(options: Options): OptionsResolved {
export function resolveOptions(options: Options): OptionsResolved {
return {
include: options.include || [/\.[cm]?[jt]sx?$/],
exclude: options.exclude || [/node_modules/],
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { createUnplugin } from 'unplugin'
import { createFilter } from '@rollup/pluginutils'
import { type Options, resolveOption } from './core/options'
import { type Options, resolveOptions } from './core/options'

export default createUnplugin<Options | undefined, false>((rawOptions = {}) => {
const options = resolveOption(rawOptions)
const options = resolveOptions(rawOptions)
const filter = createFilter(options.include, options.exclude)

const name = 'unplugin-starter'
Expand Down

0 comments on commit 264f2c8

Please sign in to comment.