Skip to content

Commit

Permalink
perf: replace @rollup/pluginutils with unplugin-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Feb 7, 2025
1 parent cb1eb2a commit b7367ff
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 24 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@
"test": "vitest"
},
"dependencies": {
"@rollup/pluginutils": "^5.1.4",
"es-module-lexer": "^1.6.0",
"magic-string": "^0.30.17",
"unplugin": "^2.1.2"
"unplugin": "^2.1.2",
"unplugin-utils": "^0.2.3"
},
"devDependencies": {
"@sxzz/eslint-config": "^5.0.1",
Expand Down
32 changes: 12 additions & 20 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/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FilterPattern } from '@rollup/pluginutils'
import type { FilterPattern } from 'unplugin-utils'

export type Options = {
/**
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 {
getLocaleRE,
getViteDepPlugin,
Expand Down

0 comments on commit b7367ff

Please # to comment.