|
|
@ -143,6 +143,7 @@ export function Program(node, context) {
|
|
|
|
const transformed = /** @type {Program['body'][number]} */ (context.visit(node.body[i]));
|
|
|
|
const transformed = /** @type {Program['body'][number]} */ (context.visit(node.body[i]));
|
|
|
|
body.push(transformed);
|
|
|
|
body.push(transformed);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (context.state.parallelized_chunks) {
|
|
|
|
let offset = 0;
|
|
|
|
let offset = 0;
|
|
|
|
for (const chunk of context.state.parallelized_chunks) {
|
|
|
|
for (const chunk of context.state.parallelized_chunks) {
|
|
|
|
if (chunk.declarators.length === 1) {
|
|
|
|
if (chunk.declarators.length === 1) {
|
|
|
@ -165,6 +166,7 @@ export function Program(node, context) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
offset++;
|
|
|
|
offset++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
...node,
|
|
|
|
...node,
|
|
|
|
body
|
|
|
|
body
|
|
|
|