Skip to content

Instantly share code, notes, and snippets.

@matthewp
Last active January 7, 2020 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewp/9f9d85e72931fe15417216b4bafd7966 to your computer and use it in GitHub Desktop.
Save matthewp/9f9d85e72931fe15417216b4bafd7966 to your computer and use it in GitHub Desktop.
QOSDK Release Notes - ES Export

This release adds support for a JavaScript module entry point. If you are using a bundler like webpack this will be used automatically and you do not need to make any changes.

Usage

Usage is described in the readme. In short you can import any of the primary classes like so:

import {
	Menu,
	Cart,
	Product,
	Discount
} from '@yumbrands/sdk';

If you are using native browser modules you'll need to set the path to your local dist/sdk.mjs file such as this:

import { ... } from './node_modules/@yumbrands/sdk/dist/sdk.mjs';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment