Compare commits

...

1 Commits

Author SHA1 Message Date
f44cc9331c babel transform 2021-07-16 17:33:14 -04:00
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@
"./": "./src/",
"oak": "https://deno.land/x/oak/mod.ts",
"@babel/": "https://esm.sh/@babel/",
"react": "https://esm.sh/react",
"react-dom": "https://esm.sh/react-dom",

View File

@ -3,7 +3,7 @@ import React from "react";
import ReactDOMServer from "react-dom/server";
import App from "/app.tsx";
import { ServerStyleSheet } from 'styled-components'
import Babel from "https://dev.jspm.io/@babel/standalone";
const Bundle = {JS:"", CSS:"", HTML:""};
@ -14,6 +14,7 @@ Deno.emit("./src/app_client.tsx", {
}).then(result =>
{
Bundle.JS = result.files["deno:///bundle.js"];
Bundle.JS = Babel.transform(Bundle.JS, {presets:["env"]}).code; // LOL XDDDDD
console.log("bundle built");
});