Skip to content

Commit 7447980

Browse files
committed
remove pathe
1 parent ea21855 commit 7447980

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@
5050
"defu": "^6.1.1",
5151
"h3": "^1.0.2",
5252
"http-proxy-middleware": "^3.0.0-beta.0",
53-
"ohash": "^1.0.0",
54-
"pathe": "^1.0.0"
53+
"ohash": "^1.0.0"
5554
},
5655
"devDependencies": {
5756
"@antfu/eslint-config": "^0.34.0",

pnpm-lock.yaml

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

src/module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { fileURLToPath } from 'url'
22
import { defu } from 'defu'
3-
import { addServerHandler, defineNuxtModule } from '@nuxt/kit'
4-
import { resolve } from 'pathe'
3+
import { addServerHandler, createResolver, defineNuxtModule } from '@nuxt/kit'
54
import type { Options } from 'http-proxy-middleware'
65
import { hash, objectHash } from 'ohash'
76

@@ -18,6 +17,7 @@ export default defineNuxtModule<ModuleOptions>({
1817
options: [],
1918
},
2019
setup(options, nuxt) {
20+
const { resolve } = createResolver(import.meta.url)
2121
const runtimeDir = fileURLToPath(new URL('./runtime', import.meta.url))
2222
nuxt.options.build.transpile.push(runtimeDir, '#proxy-handler')
2323

0 commit comments

Comments
 (0)