Skip to content

Commit

Permalink
refactor: replace @rollup/pluginutils with unplugin-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Feb 5, 2025
1 parent b629a86 commit 48fb440
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 29 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@
"dependencies": {
"@antfu/utils": "^8.0.0",
"@babel/generator": "^7.26.3",
"@rollup/pluginutils": "^5.1.4",
"ast-kit": "^1.3.2",
"magic-string-ast": "^0.6.3",
"unplugin": "^2.1.0"
"unplugin": "^2.1.0",
"unplugin-utils": "^0.2.0"
},
"devDependencies": {
"@babel/parser": "^7.26.3",
Expand Down
42 changes: 17 additions & 25 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/core/options.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { toArray, type Arrayable } from '@antfu/utils'
import type { Transformer } from './types'
import type { ParserOptions } from '@babel/parser'
import type { FilterPattern } from '@rollup/pluginutils'
import type { FilterPattern } from 'unplugin-utils'

export interface Options {
include?: FilterPattern
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createFilter } from '@rollup/pluginutils'
import { createUnplugin, type UnpluginInstance } from 'unplugin'
import { createFilter } from 'unplugin-utils'
import { resolveOption, type Options } from './core/options'
import { transform } from './core/transform'

Expand Down

0 comments on commit 48fb440

Please sign in to comment.