From 0b8cf4cef764e85f9fdca0b678fdd1e8276106eb Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Sun, 21 May 2017 21:01:20 -0400 Subject: [PATCH] add back initialiser --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 95dd4e4591..3d3b02a937 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 );