Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Use factory method for creating VS module #6

Open
Tjitse-E opened this issue Mar 22, 2019 · 0 comments
Open

Use factory method for creating VS module #6

Tjitse-E opened this issue Mar 22, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Tjitse-E
Copy link
Member

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 Tjitse-E added enhancement New feature or request good first issue Good for newcomers labels Mar 22, 2019
@Tjitse-E Tjitse-E self-assigned this Mar 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant