From 0617820ac86d763c3bada35f06f37aaae0645b9d Mon Sep 17 00:00:00 2001 From: Aiden Bai Date: Mon, 5 Feb 2024 03:23:22 -0800 Subject: [PATCH] fix: extra file --- example.mjs | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 example.mjs 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