Skip to content

Commit d6bf423

Browse files
LinusBorgchrisvfritz
authored andcommitted
correct webpack 2 syntax (#740)
`System.import()` was dropped in favour of `import()` See: https://webpack.js.org/guides/migrating/#code-splitting-with-es2015 and webpack/webpack#3098 (PR:; webpack/webpack#3413)
1 parent 96222e1 commit d6bf423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/components.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ You can also return a `Promise` in the factory function, so with Webpack 2 + ES2
10161016
``` js
10171017
Vue.component(
10181018
'async-webpack-example',
1019-
() => System.import('./my-async-component')
1019+
() => import('./my-async-component')
10201020
)
10211021
```
10221022

0 commit comments

Comments
 (0)