-
-
Notifications
You must be signed in to change notification settings - Fork 880
Closed
Labels
Description
I use it to convert typescript files, but any version after the 0.30.0 version it doesn't have declaration in the result that the method returns
const xform = oxc.transform(filepath, source, {
cwd: opts.cwd,
typescript: {
// if `--dts` flag emit types, otherwise don't
declaration: opts.dts ? { stripInternal: false } : {},
rewriteImportExtensions: true,
},
});
console.log(xform); // => in 0.30.0: { code, declaration, errors }
if (xform.errors.length > 0) {
throw new Error('oxc-transform failure: ' + xform.errors.join(';'));
}
if (typeof xform.declaration !== 'string') {
throw new Error('oxc-transform failure: no declaration');
}Does it stopped extracting declarations or what?
Reactions are currently unavailable