Skip to content

Commit 4776dd6

Browse files
committed
refactor: replace @rollup/pluginutils with unplugin-utils
1 parent aa49d9b commit 4776dd6

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@
8787
"prepublishOnly": "pnpm run build"
8888
},
8989
"dependencies": {
90-
"@rollup/pluginutils": "^5.1.4",
9190
"magic-string": "^0.30.17",
92-
"unplugin": "^2.1.2"
91+
"unplugin": "^2.1.2",
92+
"unplugin-utils": "^0.2.2"
9393
},
9494
"devDependencies": {
9595
"@sxzz/eslint-config": "^5.0.1",

pnpm-lock.yaml

Lines changed: 12 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
export type Replacement =
44
| string

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
* @module
44
*/
55

6-
import { createFilter } from '@rollup/pluginutils'
76
import MagicString from 'magic-string'
87
import {
98
createUnplugin,
109
type TransformResult,
1110
type UnpluginInstance,
1211
} from 'unplugin'
12+
import { createFilter } from 'unplugin-utils'
1313
import { resolveOptions, type Options, type ReplaceItem } from './core/options'
1414

1515
/**

0 commit comments

Comments
 (0)