Skip to content

Commit

Permalink
fix(module): remove deprecated resolveModule (#2298)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Sep 11, 2023
1 parent 0b85e88 commit 1cebdab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import fs from 'fs'
import {
addPlugin,
defineNuxtModule,
resolveModule,
createResolver,
addImports,
addComponentsDir,
Expand Down Expand Up @@ -307,7 +306,7 @@ export default defineNuxtModule<ModuleOptions>({
},
async setup (options, nuxt) {
const { resolve } = createResolver(import.meta.url)
const resolveRuntimeModule = (path: string) => resolveModule(path, { paths: resolve('./runtime') })
const resolveRuntimeModule = (path: string) => resolve('./runtime', path)
// Ensure default locale alway is the first item of locales
options.locales = Array.from(new Set([options.defaultLocale, ...options.locales].filter(Boolean))) as string[]

Expand Down

0 comments on commit 1cebdab

Please sign in to comment.