deno_swc
deno_swc copied to clipboard
The SWC compiler for Deno.
Example: ```typescript const code = print({ type: "Module", span: {...}, interpreter: null as any, // here body: [], }) ``` I don't want to have an interpreter as a first...
It seems strange for these functions to be maintaining state and producing output that isn't expected from the given input. For instance, manipulation of a string value results in the...
# Problem I'd like to author a Visitor, but the class isn't exposed # Discussion Can we expose it?
``` const files = ['file1', 'file2'] files.forEach(f => { const text = Deno.readTextFileSync(f); const ast = parse(text, { target: "es2020", syntax: "typescript", comments: false, tsx: true, }); }) ``` In...
Here's a small benchmark to demonstrate the issue: ``` processing file https://cdn.esm.sh/v63/[email protected]/es2021/lodash.js: fetching... fetch: 151ms fetched size: 73KB transforming... transform: 632ms transformed size: 151KB parsing... parse: 192ms parsed size: 3236KB...
Right now in one project I'm running into this issue where `expression.body` cannot have proper types due to `Argument` not being extendable through generics: https://github.com/exhibitionist-digital/ultra/pull/5/files#diff-adb065f7ea26f7f005649ad48bcbf0534bc860c701bb4e19c3917b125f4e2f20R47-R50 this PR adds generics to...
Refer https://github.com/swc-project/swc/issues/885
how to correctly [vendor](https://deno.land/[email protected]/tools/vendor) this? ``` $ cat ast.js import { parse } from "https://deno.land/x/[email protected]/mod.ts"; const code = "const a = 44;"; const ast = parse(code, { syntax: "ecmascript", comments:...
Breaks trying to parse typescript "satisfies"