From cd2f0af8594f2cb6d0993b8a0b1f0bb04d03c4b5 Mon Sep 17 00:00:00 2001 From: Paulo Coghi Date: Mon, 14 May 2018 23:39:03 -0300 Subject: [PATCH] Update the "Example usage" Update the result of "svelte.compile" from "Example usage" section, replacing `{ code, map }` to `{ js, css, ast }` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c7f76599e2..9a97498a41 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ This is the Svelte compiler, which is primarily intended for authors of tooling ```js import * as svelte from 'svelte'; -const { code, map } = svelte.compile(source, { +const { js, css, ast } = svelte.compile(source, { // the target module format – defaults to 'es' (ES2015 modules), can // also be 'amd', 'cjs', 'umd', 'iife' or 'eval' format: 'umd',