diff --git a/scripts/generate-demo-routes-file.ts b/scripts/generate-demo-routes-file.ts index 6d871872f871..d697d6e87b2c 100644 --- a/scripts/generate-demo-routes-file.ts +++ b/scripts/generate-demo-routes-file.ts @@ -1,3 +1,4 @@ +/// import {readFileSync, writeFileSync} from 'node:fs'; import {join} from 'node:path'; @@ -47,7 +48,6 @@ const EXCEPTIONS = [ const routes = demoRoutesFileContent .match(/['"`](.*)['"`]/g) - // @ts-ignore Try changing the lib compiler option to es2021 or later ?.map((route) => route.replaceAll(/['"`]/g, '')) || []; routes.forEach((route) => {