@knapsack/app
Version:
Build Design Systems with Knapsack
19 lines • 483 B
TypeScript
/**
* Useful for taking code generated on the server and transpiling it to the client
* @example
* function run(name: string) {
* console.log(name);
* }
* const html = `
* <script>
* ${run.toString()}
* ${run.name}('hi!');
* </script>
* `;
* const transpiled = babelCodeForBrowser({ code: html });
*/
export declare const babelCodeForBrowser: (opt: {
code: string;
minified?: boolean;
}) => Promise<string>;
//# sourceMappingURL=babel-code-for-browser.d.ts.map