We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f8129a commit 438b16dCopy full SHA for 438b16d
packages/nuxt/src/index.ts
@@ -28,6 +28,10 @@ const module = defineNuxtModule<PiniaNuxtOptions>({
28
nuxt.options.features.store = false
29
}
30
31
+ // make sure we use the mjs for pinia so node doesn't complain about using a module js with an extension that is js
32
+ // but doesn't have the type: module in its packages.json file
33
+ nuxt.options.alias.pinia = 'pinia/pinia.mjs'
34
+
35
addPlugin({ src: resolve(__dirname, '../templates/plugin.js') })
36
37
// Define pinia resolution to ensure plugins register global context successfully
0 commit comments