-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhanceApp options should merge options we pass #1631
Comments
Sorry for the delay to see this pull request, do you still need it? |
no problem yeah it could be great as the feature for me should exist when i watch the code. Maybe i am wrong ? |
I'd be great to add that. I've been trying to import my vuetify component to vuepress but those components use vue-i18n and I can't find a way to make it work. |
If i remember well it was exactly for that i created the issue because i faced the same probleme @MickaMx :) |
Did you found a way around ? other than the code you've add in this issue? |
This part of code should be update. I could create the PR but just need some validation on it |
yeah i found something but really not stable |
Yep, I saw that. It didn't got merge yet ^^ |
Wow. I have exactly the same problem now. I am really looking forward to have this merged. |
We will publish it the next release |
What's the problem if we use // .vuepress/enhanceApp.js
import Vuex from 'vuex'
export default ({ Vue, options }) => {
Vue.use(Vuex)
const store = new Vuex.Store({
state: {
msg: 'hello'
},
})
Object.assign(options, {
store
})
} // README.md
{{ $store.state.msg }} That works well. 🤔 So what's this FR for? Sorry if I misunderstood this FR. |
@meteorlxy it change the option by reference ? |
@meteorlxy answered to the question thx i am closing the issue |
Feature request
actually i am building additional page from components with docs
https://github.com/f3ltron/vuepress-plugin-docgen
What problem does this feature solve?
when we use some front plugin like vue18n in my case by letting me merge my options into options there will be no more bug for $t is not define
What does the proposed API look like?
The merge should merge dynamically our options
Are you willing to work on this yourself?
i can if it's accepted
The text was updated successfully, but these errors were encountered: