diff --git a/packages/ses/scripts/hermesTransforms.js b/packages/ses/scripts/hermesTransforms.js index 396aba8e35..033dce50e6 100644 --- a/packages/ses/scripts/hermesTransforms.js +++ b/packages/ses/scripts/hermesTransforms.js @@ -1,14 +1,15 @@ -// @ts-nocheck XXX Babel types /* eslint-disable import/no-extraneous-dependencies */ import { parse } from '@babel/parser'; import babelGenerate from '@agoric/babel-generator'; import babelTraverse from '@babel/traverse'; import * as t from '@babel/types'; +// @ts-expect-error TS2339 Property 'default' does not exist const traverse = babelTraverse.default || babelTraverse; const generate = babelGenerate.default || babelGenerate; const decoder = new TextDecoder('utf-8'); +// @ts-expect-error TS2554 Expected 0 arguments, but got 1 const encoder = new TextEncoder('utf-8'); const asyncArrowEliminator = { @@ -56,6 +57,7 @@ export const hermesTransforms = { traverse(ast, transforms); const { code } = generate(ast, { + // Nothing being done with sourcemaps as this point retainLines: true, compact: true, verbatim: true,