Update the "Example usage"

Update the result of "svelte.compile" from "Example usage" section, replacing `{ code, map }` to `{ js, css, ast }`
pull/1465/head
Paulo Coghi 6 years ago committed by GitHub
parent ee052dc7bd
commit cd2f0af859
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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',

Loading…
Cancel
Save