Skip to content

Commit 70befe6

Browse files
committed
perf: migrate to exsolve from mlly
1 parent b3df46c commit 70befe6

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"test:types": "tsc --noEmit"
3030
},
3131
"dependencies": {
32-
"mlly": "^1.7.4",
32+
"exsolve": "^1.0.5",
3333
"mocked-exports": "^0.1.1",
3434
"pathe": "^2.0.3",
3535
"unplugin": "^2.3.2",

pnpm-lock.yaml

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

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { resolvePath } from 'mlly'
1+
import { resolveModulePath } from 'exsolve'
22
import { isAbsolute, join, relative } from 'pathe'
33
import { createUnplugin } from 'unplugin'
44
import { createFilter } from 'unplugin-utils'
@@ -27,7 +27,7 @@ export const ImpoundPlugin = createUnplugin((globalOptions: ImpoundOptions) => {
2727

2828
return matchers.map((options) => {
2929
const filter = createFilter(options.include, options.exclude, { resolve: globalOptions.cwd })
30-
const proxy = resolvePath('mocked-exports/proxy', { url: import.meta.url })
30+
const proxy = resolveModulePath('mocked-exports/proxy', { from: import.meta.url })
3131

3232
return {
3333
name: 'impound',

0 commit comments

Comments
 (0)