From 2d05c45a4936ea1eea39f0d2bd82150d12d516da Mon Sep 17 00:00:00 2001 From: Ben Conolly Date: Wed, 11 Jul 2018 00:32:28 +1000 Subject: [PATCH] Add `function` (#200) The code block for using the API did not have the word function in `async function runBundle`. It now runs if copy/pasted --- src/i18n/en/docs/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n/en/docs/api.md b/src/i18n/en/docs/api.md index e4304b249..defa7331d 100644 --- a/src/i18n/en/docs/api.md +++ b/src/i18n/en/docs/api.md @@ -29,7 +29,7 @@ const options = { detailedReport: false // Prints a detailed report of the bundles, assets, filesizes and times, defaults to false, reports are only printed if watch is disabled }; -async runBundle() { +async function runBundle() { // Initializes a bundler using the entrypoint location and options provided const bundler = new Bundler(file, options);