vsf-external-checkout icon indicating copy to clipboard operation
vsf-external-checkout copied to clipboard

Use factory method for creating VS module

Open Tjitse-E opened this issue 5 years ago • 0 comments

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)

Tjitse-E avatar Mar 22 '19 09:03 Tjitse-E