import { init, parse } from "es-module-lexer"; import { Bun } from "./api"; export async function start() { await init; await Bun.init("/bun-wasm.wasm"); } const swcOptions = { sourceMaps: false, inlineSourcesContent: false, jsc: { target: "es2022", parser: { jsx: true, syntax: "typescript", tsx: false, decorators: false, dynamicImport: false, }, }, }; export async function transform(contents, file) { var result = { timings: { lexer: 0, bun: 0, }, }; result.timings.lexer = performance.now(); result.lexer = await parse(contents, file); result.timings.lexer = performance.now() - result.timings.lexer; result.timings.bun = performance.now(); result.bun = Bun.scan(contents, file); result.timings.bun = performance.now() - result.timings.bun; console.log("lexer:", result.timings.lexer, "ms"); console.log("Bun:", result.timings.bun, "ms"); return result; } ion value='aggre/main'>aggre/main Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/packages/astro/test/fixtures/route-manifest/sorting/post (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2024-03-28[ci] formatGravatar TK 1-2/+2
2024-03-28feat: allow dynamic route segments in isr.exclude array (#10513)Gravatar TK 5-3/+69
* Allow dynamic route segments in isr.exclude array * copy over eslint-disable as well * add test * update test: slashes dont need to be escaped * update changeset --------- Co-authored-by: lilnasy <69170106+lilnasy@users.noreply.github.com>
2024-03-28[ci] formatGravatar Houston (Bot) 2-3/+3
2024-03-28[ci] release (#10597)Gravatar Houston (Bot) 37-66/+89
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-28db: Rework index config with generated index names (#10589)Gravatar Ben Holmes 6-68/+344
* feat: add indexes array config with name gen * fix: add _idx suffix, remove name from output * feat(test): new index config * chore: remove unused type * chore: changeset * chore: add sort() for consistent names * feat(test): consistent column ordering * feat(test): ensure no queries when migrating legacy to new