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 7d809d7 commit fb38eb5Copy full SHA for fb38eb5
src/execute/ojs/extract-resources.ts
@@ -446,11 +446,17 @@ quarto will only generate javascript files in ${
446
}
447
448
let fixedSource = jsSource;
449
-
450
- const ast = parseES6(jsSource, {
451
- ecmaVersion: "2020",
452
- sourceType: "module",
453
- });
+ let ast: any = undefined;
+ try {
+ ast = parseES6(jsSource, {
+ ecmaVersion: "latest",
+ sourceType: "module",
454
+ });
455
+ } catch (e) {
456
+ console.error(jsSource);
457
+ console.error("Error parsing compiled typescript file.");
458
+ throw e;
459
+ }
460
const recursionList: string[] = [];
461
// deno-lint-ignore no-explicit-any
462
const patchDeclaration = (node: any) => {
0 commit comments