From a1a087c4be50afa8208043184b0d68ae79be28e4 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Wed, 24 Aug 2016 10:47:45 -0400 Subject: [PATCH] fix code splitting example --- docs/route.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/route.md b/docs/route.md index 64659975..acc3b427 100644 --- a/docs/route.md +++ b/docs/route.md @@ -391,9 +391,9 @@ Fortunately, there are a number of tools that facilitate the task of bundling mo ```javascript m.route(document.body, "/", { "/": { - onmatch: function(use) { + onmatch: function(vnode, resolve) { // using Webpack async code splitting - require(['./Home.js'], use) + require(['./Home.js'], resolve) }, }, })