Skip to content

Commit 7631403

Browse files
committed
fix
1 parent 46a004e commit 7631403

File tree

1 file changed

+12
-11
lines changed
  • packages/svelte/src/compiler/phases/2-analyze

1 file changed

+12
-11
lines changed

packages/svelte/src/compiler/phases/2-analyze/index.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,17 @@ export function analyze_module(ast, options) {
245245
}
246246
}
247247

248-
const analysis = { runes: true, tracing: false };
248+
/** @type {Analysis} */
249+
const analysis = {
250+
module: { ast, scope, scopes, is_async },
251+
name: options.filename,
252+
accessors: false,
253+
runes: true,
254+
immutable: true,
255+
tracing: false,
256+
async_deriveds: new Set(),
257+
context_preserving_awaits: new Set()
258+
};
249259

250260
walk(
251261
/** @type {Node} */ (ast),
@@ -258,16 +268,7 @@ export function analyze_module(ast, options) {
258268
visitors
259269
);
260270

261-
return {
262-
module: { ast, scope, scopes, is_async },
263-
name: options.filename,
264-
accessors: false,
265-
runes: true,
266-
immutable: true,
267-
tracing: analysis.tracing,
268-
async_deriveds: new Set(),
269-
context_preserving_awaits: new Set()
270-
};
271+
return analysis;
271272
}
272273

273274
/**

0 commit comments

Comments
 (0)