From 5289fdedf878b301b3337866d0892e207874c7ce Mon Sep 17 00:00:00 2001 From: Lukas Taegert-Atkinson Date: Fri, 15 Nov 2019 16:58:03 +0100 Subject: [PATCH] docs: Fix tutorial example --- docs/04-tutorial.md | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/docs/04-tutorial.md b/docs/04-tutorial.md index 6ed34605e60..f5ea972ba34 100755 --- a/docs/04-tutorial.md +++ b/docs/04-tutorial.md @@ -276,18 +276,7 @@ export default { Besides `bundle.js`, Rollup will now create a second file `bundle.min.js`: ```js -var version = (function () { - 'use strict'; - - var version = "1.0.0"; - - function main () { - console.log('version ' + version); - } - - return main; - -}()); +var version=function(){"use strict";var n="1.0.0";return function(){console.log("version "+n)}}(); ```