Skip to content

Commit

Permalink
fix: export Vike configuration at /config for vike-pinia
Browse files Browse the repository at this point in the history
BREAKING CHANGE: use `import vikePinia from 'vike-pinia/config'` in `+config` files
  • Loading branch information
pdanpdan committed Jun 3, 2024
1 parent 43eaabd commit c2baf03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/pinia/pages/+config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Config } from 'vike/types'
import Layout from '../layouts/LayoutDefault.vue'
import Head from '../layouts/HeadDefault.vue'
import vikeVue from 'vike-vue/config'
import vikePinia from 'vike-pinia'
import vikePinia from 'vike-pinia/config'

// Default configs (can be overridden by pages)
export default {
Expand Down
4 changes: 2 additions & 2 deletions packages/vike-pinia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
"release:commit": "release-me commit"
},
"exports": {
".": "./dist/+config.js",
"./config": "./dist/+config.js",
"./renderer/installPinia": "./dist/installPinia.js",
"./renderer/dehydratePinia": "./dist/dehydratePinia.js",
"./renderer/hydratePinia": "./dist/hydratePinia.js"
},
"typesVersions": {
"*": {
".": [
"config": [
"./dist/+config.d.ts"
],
"renderer/installPinia": [
Expand Down

0 comments on commit c2baf03

Please sign in to comment.