mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
| .. | ||
| scripts | ||
| package.json | ||
| README.md | ||
The JavaScript Oxidation Compiler
See index.d.ts for parseSync and parseAsync API.
ESM
import oxc from './index.js';
import assert from 'assert';
test(oxc.isolatedDeclaration("test.ts", "class A {}"), "declare class A {}\n");
function test(ret, expected) {
assert.equal(ret.sourceText, expected);
assert(ret.errors.length == 0);
}