0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

Merge pull request #1465 from paulocoghi/patch-1

Update "Example usage" in readme
This commit is contained in:
Rich Harris 2018-05-15 08:12:56 -04:00 committed by GitHub
commit 36b81b79b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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