@zaibot/ts-transforms
v0.1.2
Published
TypeScript transforms
Downloads
1
Readme
@zaibot/ts-transforms
Installation
npm install @zaibot/ts-transforms
Usage
import { applyTransformations, addWildCardImport } from '@zaibot/ts-transforms';
const transform = applyTransformations([
addWildCardImport('react-dom', 'ReactDOM')
]);
const input = `import * as React from "react";`;
console.log(transform(input));
// Output:
// import * as ReactDOM from "react-dom";
// import * as React from "react";
//
Transformations:
- addWildCardImport