add back initialiser

pull/573/head
Rich-Harris 8 years ago
parent 4486b93d88
commit 0b8cf4cef7

@ -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 );

Loading…
Cancel
Save