Skip to content

Commit 0a7a339

Browse files
committed
update tutorial
1 parent f3ef287 commit 0a7a339

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/en/start/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ npm install\
3232
webpack webpack-dev-server\
3333
vue-loader vue-html-loader css-loader vue-style-loader vue-hot-reload-api\
3434
babel-loader babel-core babel-plugin-transform-runtime babel-preset-es2015\
35-
babel-runtime@5\
35+
babel-runtime\
3636
--save-dev
3737
npm install vue --save
3838
```
3939

4040
That's a lot of dependencies, I know! This is mostly because `vue-loader` need to have other webpack loaders as **peer dependencies** rather than nested dependencies so that Webpack can find them.[^(1)]
4141

42-
You may also notice that we are using `babel-runtime` version 5 instead of the latest 6.x - this is [intentional](https://github.com/vuejs/vue-loader/issues/96#issuecomment-162910917).
42+
> Note: In previous versions of `vue-loader` we used to explicitly install `babel-runtime` 5.x to avoid duplicate dependencies - this is no longer necessary after recent babel upgrade.
4343
4444
After proper installation, your `package.json`'s `devDependencies` field should look like this:
4545

0 commit comments

Comments
 (0)