Open alvarosabu opened 2 years ago
Passing custom resolvers for bloks inside via the plugin was overwriting the rest of default resolvers, causing errors.
bloks
Also, custom resolvers where not rendered
import CustomComponent from './components/CustomComponent.vue'; ... app.use(plugin({ resolvers: { components: { 'custom-component': () => h(CustomComponent) } } }));
This PR adds a condition to add defaultResolvers when options.resolvers is passed to createRenderer
options.resolvers
createRenderer
Describe issue
Passing custom resolvers for
bloks
inside via the plugin was overwriting the rest of default resolvers, causing errors.Also, custom resolvers where not rendered
Solution
This PR adds a condition to add defaultResolvers when
options.resolvers
is passed tocreateRenderer