react-sandbox-editor icon indicating copy to clipboard operation
react-sandbox-editor copied to clipboard

Add typescript support

Open malerba118 opened this issue 7 years ago • 0 comments

Something along the lines of

import * as ts from "typescript";

const source = "let x: string = 'string'";

let result = ts.transpileModule(source, { compilerOptions: { module: ts.ModuleKind.CommonJS } });

window.alert(JSON.stringify(result));

Might want to make this a peer dependency/plugin option to reduce bundle size

malerba118 avatar Dec 27 '18 16:12 malerba118