Skip to content

Commit 6aefde3

Browse files
committed
refactor: replace @rollup/pluginutils with unplugin-utils
1 parent 94940cd commit 6aefde3

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@
7676
"prepublishOnly": "pnpm run build"
7777
},
7878
"dependencies": {
79-
"@rollup/pluginutils": "^5.1.4",
8079
"@vue/language-core": "^2.2.0",
8180
"ast-kit": "^1.4.0",
8281
"magic-string-ast": "^0.7.0",
8382
"muggle-string": "^0.4.1",
84-
"unplugin": "^2.2.0"
83+
"unplugin": "^2.2.0",
84+
"unplugin-utils": "^0.2.4"
8585
},
8686
"devDependencies": {
8787
"@babel/types": "^7.26.8",

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { FilterPattern } from '@rollup/pluginutils'
1+
import type { FilterPattern } from 'unplugin-utils'
22

33
type MarkRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>
44

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { createFilter } from '@rollup/pluginutils'
21
import { babelParse, getLang } from 'ast-kit'
32
import { generateTransform, MagicString } from 'magic-string-ast'
43
import { createUnplugin, type UnpluginInstance } from 'unplugin'
4+
import { createFilter } from 'unplugin-utils'
55
import { resolveOption, type Options } from './core/options'
66
import { resolveName } from './core/utils'
77
import type * as t from '@babel/types'

0 commit comments

Comments
 (0)