Skip to content

Commit

Permalink
fix: remove bundled aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
Hebilicious committed Aug 10, 2023
1 parent 87d7984 commit 2dc0fcc
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/authjs-nuxt/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ export default defineNuxtModule<ModuleOptions>({
const options = defu(nuxt.options.runtimeConfig.public[configKey], userOptions)
nuxt.options.runtimeConfig.public[configKey] = options

// 2. Alias @auth/core dependencies to their browser version
// @todo This isn't needed for node, apply this based on Nitro settings
nuxt.options.alias = defu(nuxt.options.alias, {
"jose": resolve(__dirname, "../node_modules/jose/dist/browser/index.js"),
"@panva/hkdf": resolve(__dirname, "../node_modules/@panva/hkdf/dist/web/index.js")
})

// 3. Add composables
addImports([{ name: "useAuth", from: resolve("./runtime/composables/useAuth") }])

Expand Down

0 comments on commit 2dc0fcc

Please sign in to comment.