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

add back initialiser

This commit is contained in:
Rich-Harris 2017-05-21 21:01:20 -04:00
parent 4486b93d88
commit 0b8cf4cef7

View File

@ -48,7 +48,7 @@ export function compile ( source: string, _options: CompileOptions ) {
return compiler( parsed, source, options );
}
export function create ( source: string, _options: CompileOptions ) {
export function create ( source: string, _options: CompileOptions = {} ) {
_options.format = 'eval';
const compiled = compile( source, _options );