Skip to content

Commit 9bd6491

Browse files
docs: remove promise polyfill info (#2022)
1 parent 5b8ad0a commit 9bd6491

File tree

4 files changed

+0
-100
lines changed

4 files changed

+0
-100
lines changed

docs/installation.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,6 @@ npm install vuex@next --save
2727
yarn add vuex@next --save
2828
```
2929

30-
## Promise
31-
32-
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).
33-
34-
You can include it via CDN:
35-
36-
```html
37-
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.js"></script>
38-
```
39-
40-
Then `window.Promise` will be available automatically.
41-
42-
If you prefer using a package manager such as NPM or Yarn, install it with the following commands:
43-
44-
```bash
45-
npm install es6-promise --save # NPM
46-
yarn add es6-promise # Yarn
47-
```
48-
49-
Furthermore, add the below line into anywhere in your code before using Vuex:
50-
51-
```js
52-
import 'es6-promise/auto'
53-
```
54-
5530
## Dev Build
5631

5732
You will have to clone directly from GitHub and build `vuex` yourself if you want to use the latest dev build.

docs/ja/installation.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,6 @@ npm install vuex@next --save
2727
yarn add vuex@next --save
2828
```
2929

30-
## Promise
31-
32-
Vuex は [Promise (プロミス)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises) を必要とします。ブラウザで Promise が実装されていない(例 IE)場合は、[es6-promise](https://github.com/stefanpenner/es6-promise) のようなポリフィルライブラリを使用できます。
33-
34-
CDN 経由でそれを含めることができます:
35-
36-
```html
37-
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.js"></script>
38-
```
39-
40-
`window.Promise` は自動的に有効になります。
41-
42-
NPM または Yarn のようなパッケージマネージャーを使用するのを希望する場合は、以下のコマンドでインストールします:
43-
44-
```bash
45-
npm install es6-promise --save # NPM
46-
yarn add es6-promise # Yarn
47-
```
48-
49-
さらに、Vuex を使用する前に、コードのどこかに次の行を追加します:
50-
51-
```js
52-
import 'es6-promise/auto'
53-
```
54-
5530
## 開発版ビルド
5631

5732
最新の開発版ビルドを利用したい場合には、 GitHub から直接クローンし `vuex` を自身でビルドする必要があります。

docs/ptbr/installation.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,6 @@ npm install vuex@next --save
2727
yarn add vuex@next --save
2828
```
2929

30-
## Promise
31-
32-
Vuex requer [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises). Se os seus navegadores não implementarem o _Promise_ (e.g. IE), você pode usar uma biblioteca _polyfill_, como a [es6-promise](https://github.com/stefanpenner/es6-promise).
33-
34-
Você pode incluí-la via CDN:
35-
36-
```html
37-
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.js"></script>
38-
```
39-
40-
Então o `window.Promise` estará disponível automaticamente.
41-
42-
Se você preferir usar um gerenciador de pacotes como NPM ou Yarn, instale-o com os seguintes comandos:
43-
44-
```bash
45-
npm install es6-promise --save # NPM
46-
yarn add es6-promise # Yarn
47-
```
48-
49-
Além disso, adicione a linha abaixo em qualquer lugar no seu código antes de usar o Vuex:
50-
51-
```js
52-
import 'es6-promise/auto'
53-
```
54-
5530
## Dev Build
5631

5732
Você terá que clonar diretamente do GitHub e fazer a distribuição (_build_) do `vuex` se

docs/zh/installation.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,6 @@ npm install vuex@next --save
2727
yarn add vuex@next --save
2828
```
2929

30-
### Promise
31-
32-
Vuex 依赖 [Promise](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Using_promises)。如果你支持的浏览器并没有实现 Promise (比如 IE),那么你可以使用一个 polyfill 的库,例如 [es6-promise](https://github.com/stefanpenner/es6-promise)
33-
34-
你可以通过 CDN 将其引入:
35-
36-
``` html
37-
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.js"></script>
38-
```
39-
40-
然后 `window.Promise` 会自动可用。
41-
42-
如果你喜欢使用诸如 npm 或 Yarn 等包管理器,可以按照下列方式执行安装:
43-
44-
``` bash
45-
npm install es6-promise --save # npm
46-
yarn add es6-promise # Yarn
47-
```
48-
49-
或者更进一步,将下列代码添加到你使用 Vuex 之前的一个地方:
50-
51-
``` js
52-
import 'es6-promise/auto'
53-
```
54-
5530
### 自己构建
5631

5732
如果需要使用 dev 分支下的最新版本,您可以直接从 GitHub 上克隆代码并自己构建。

0 commit comments

Comments
 (0)