Skip to content

Commit e49f478

Browse files
committed
refactor: replace @rollup/pluginutils with unplugin-utils
1 parent 0d950e5 commit e49f478

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
@@ -65,10 +65,10 @@
6565
"prepublishOnly": "pnpm run build"
6666
},
6767
"dependencies": {
68-
"@rollup/pluginutils": "^5.1.4",
6968
"lightningcss": "^1.29.1",
7069
"magic-string": "^0.30.17",
71-
"unplugin": "^2.1.2"
70+
"unplugin": "^2.1.2",
71+
"unplugin-utils": "^0.2.2"
7272
},
7373
"devDependencies": {
7474
"@sxzz/eslint-config": "^5.0.1",

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,5 +1,5 @@
1-
import type { FilterPattern } from '@rollup/pluginutils'
21
import type { TransformOptions } from 'lightningcss'
2+
import type { FilterPattern } from 'unplugin-utils'
33

44
export type Options = {
55
include?: FilterPattern

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'node:path'
2-
import { createFilter } from '@rollup/pluginutils'
32
import { createUnplugin, type UnpluginInstance } from 'unplugin'
3+
import { createFilter } from 'unplugin-utils'
44
import { resolveOption, type Options } from './core/options'
55
import { transformCss, transformCssModule } from './core/transform'
66

0 commit comments

Comments
 (0)