0๐
I worked it out in the end
requirejs.config({
shim: {
form: {
deps: [ 'stripe' ]
}
},
paths: {
stripe: 'https://js.stripe.com/v3/?noext',
form: '/js/my-component'
}
});
require(['stripe', 'form'], function($) {
return {};
});
- [Vuejs]-How can I modify a various pieces of my Vuex from within a reusable nested component?
- [Vuejs]-How to write a single piece of code running both on route A (mounted hook) and also when arriving at route A?
Source:stackexchange.com