|
@@ -27,31 +27,6 @@ npm install vuex@next --save
|
|
yarn add vuex@next --save
|
|
yarn add vuex@next --save
|
|
```
|
|
```
|
|
|
|
|
|
-## Promise
|
|
|
|
-
|
|
|
|
-Vuex requires [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises). If your supporting browsers do not implement Promise (e.g. IE), you can use a polyfill library, such as [es6-promise](https://github.com/stefanpenner/es6-promise).
|
|
|
|
-
|
|
|
|
-You can include it via CDN:
|
|
|
|
-
|
|
|
|
-```html
|
|
|
|
-<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.js"></script>
|
|
|
|
-```
|
|
|
|
-
|
|
|
|
-Then `window.Promise` will be available automatically.
|
|
|
|
-
|
|
|
|
-If you prefer using a package manager such as NPM or Yarn, install it with the following commands:
|
|
|
|
-
|
|
|
|
-```bash
|
|
|
|
-npm install es6-promise --save # NPM
|
|
|
|
-yarn add es6-promise # Yarn
|
|
|
|
-```
|
|
|
|
-
|
|
|
|
-Furthermore, add the below line into anywhere in your code before using Vuex:
|
|
|
|
-
|
|
|
|
-```js
|
|
|
|
-import 'es6-promise/auto'
|
|
|
|
-```
|
|
|
|
-
|
|
|
|
## Dev Build
|
|
## Dev Build
|
|
|
|
|
|
You will have to clone directly from GitHub and build `vuex` yourself if you want to use the latest dev build.
|
|
You will have to clone directly from GitHub and build `vuex` yourself if you want to use the latest dev build.
|