mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 12:51:57 +00:00
## [0.15.0] - 2024-06-18 - |
||
|---|---|---|
| .. | ||
| scripts | ||
| CHANGELOG.md | ||
| 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);
}