vsf-external-checkout
vsf-external-checkout copied to clipboard
Use factory method for creating VS module
Fromt the 1.8 > 1.9 upgrade notes:
Way of creating VS Modules was changed to use factory method instead of explict object creation. Even though the feature is backward compatible we highly encourage all developers to refactor their modules to use new syntax.
import { createModule } from '@vue-storefront/core/lib/module'
const moduleConfig: VueStorefrontModuleConfig = {
// VS module config
}
const module = createModule(moduleConfig)