Skip to content

Commit

Permalink
fix: export the module version in mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Sep 30, 2021
1 parent d798a09 commit cffc313
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nuxt/src/index.ts
Expand Up @@ -32,7 +32,7 @@ const module = defineNuxtModule<PiniaNuxtOptions>({

// Define pinia resolution to ensure plugins register global context successfully
nuxt.options.alias['pinia'] =
nuxt.options.alias['pinia'] || resolveModule('pinia')
nuxt.options.alias['pinia'] || resolveModule('pinia/index.mjs')

// transpile pinia if @vue/composition-api is transpiled because we must use the same instance
if (
Expand Down
2 changes: 1 addition & 1 deletion packages/pinia/index.mjs
@@ -1 +1 @@
export * from './index.js'
export * from './dist/pinia.esm-bundler.js'

0 comments on commit cffc313

Please sign in to comment.