We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 502d6dd commit 3588f32Copy full SHA for 3588f32
packages/svelte/src/compiler/index.js
@@ -44,7 +44,8 @@ export function compile(source, options) {
44
const analysis = analyze_component(parsed, source, combined_options);
45
46
const result = transform_component(analysis, source, combined_options);
47
- return { ...result, ast: to_public_ast(source, parsed, options.modernAst) };
+ result.ast = to_public_ast(source, parsed, options.modernAst);
48
+ return result;
49
} catch (e) {
50
if (e instanceof CompileError) {
51
handle_compile_error(e, options.filename, source);
0 commit comments