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:
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…
Reference in New Issue
Block a user