Skip to content

Commit

Permalink
Remove explicit nuxt alias
Browse files Browse the repository at this point in the history
The explicit nuxt alias leads to problems with nuxt/bridge (using vite) as descirbed here vuejs#690 (comment).

Reverts vuejs@438b16d
Fixes vuejs#690.
  • Loading branch information
tobiasdiez committed Nov 7, 2021
1 parent a76e343 commit 5ee670a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/nuxt/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ const module = defineNuxtModule<PiniaNuxtOptions>({
nuxt.options.features.store = false
}

// make sure we use the mjs for pinia so node doesn't complain about using a module js with an extension that is js
// but doesn't have the type: module in its packages.json file
nuxt.options.alias.pinia = 'pinia/dist/pinia.mjs'

addPlugin({ src: require.resolve('./plugin.mjs') })

// transpile pinia for nuxt 2 and nuxt bridge
Expand Down

0 comments on commit 5ee670a

Please sign in to comment.