]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: note about pinia
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 31 Mar 2021 09:28:48 +0000 (11:28 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 31 Mar 2021 09:28:53 +0000 (11:28 +0200)
docs/ssr/nuxt.md

index de68638c572ddd0d0eea097342bcfadfc8534320..77497d8b0dfcafda2e9cc6c995176b93bf7c1f7d 100644 (file)
@@ -19,6 +19,13 @@ We supply a _module_ to handle everything for you, you only need to add it to `b
 export default {
   // ... other options
   buildModules: ['@nuxtjs/composition-api', 'pinia/nuxt'],
+
+  // there is currently a unresolved bug that requires you to add
+  // `pinia` to `build.transpile` to make it work in production:
+  // https://github.com/nuxt-community/composition-api/issues/415
+  build: {
+    transpile: ['pinia'],
+  },
 }
 ```