diff --git a/example.mjs b/example.mjs deleted file mode 100644 index ee61f376da..0000000000 --- a/example.mjs +++ /dev/null @@ -1,23 +0,0 @@ -import { transformAsync } from '@babel/core'; -import { babel } from 'million/compiler'; - -async function compile(code) { - const result = await transformAsync(code, { - plugins: [ - [babel, { server: true }], - ], - parserOpts: { - plugins: [ - 'jsx', - ], - }, - }); - - return result?.code ?? ''; -} - -console.log(await compile(` -import { block } from 'million/react'; - -export const Example = block(() =>

Hello World

); -`)); \ No newline at end of file