From 5ee670a38afc7df87085e306214a0c1bb0b0fc7c Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Sun, 7 Nov 2021 21:40:45 +0100 Subject: [PATCH] Remove explicit nuxt alias The explicit nuxt alias leads to problems with nuxt/bridge (using vite) as descirbed here https://github.com/posva/pinia/issues/690#issuecomment-956913149. Reverts https://github.com/posva/pinia/commit/438b16dfd3dd5052be437d2e7382f9f4f497eea3 Fixes #690. --- packages/nuxt/src/module.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/nuxt/src/module.ts b/packages/nuxt/src/module.ts index 246d980788..46e7ac3eea 100644 --- a/packages/nuxt/src/module.ts +++ b/packages/nuxt/src/module.ts @@ -28,10 +28,6 @@ const module = defineNuxtModule({ 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