Vendic / vsf-external-checkout

VueStorefront External Checkout module
MIT License
25 stars 10 forks source link

Use factory method for creating VS module #6

Open Tjitse-E opened 5 years ago

Tjitse-E commented 5 years ago

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)