add back initialiser

pull/7738/head
Rich-Harris 8 years ago
parent 1fa899b811
commit a85b01e873

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