Comparing version 0.0.4 to 0.0.5
@@ -61,6 +61,6 @@ function safeAppendRootContent(content) { | ||
// transpile and run | ||
import("https://esm.sh/esbuild-wasm@0.23.1").then(async (esbuild) => { | ||
import("https://esm.sh/esbuild-wasm@0.24.2").then(async (pkg) => { | ||
performance.mark("esbuild-wasm:imported"); | ||
await esbuild.initialize({ | ||
wasmURL: "https://esm.sh/esbuild-wasm@0.23.1/esbuild.wasm", | ||
await pkg.default.initialize({ | ||
wasmURL: "https://esm.sh/esbuild-wasm@0.24.2/esbuild.wasm", | ||
}); | ||
@@ -67,0 +67,0 @@ |
{ | ||
"name": "esplay", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -29,7 +29,7 @@ # ESPlay | ||
<script type="text/babel"> | ||
import React, { useState } from 'react' | ||
import ReactDOM from 'react-dom/client' | ||
import React, { useState } from "react"; | ||
import ReactDOM from "react-dom/client"; | ||
function App() { | ||
const [count, setCount] = useState(0) | ||
const [count, setCount] = useState(0); | ||
return ( | ||
@@ -40,10 +40,10 @@ <div> | ||
</div> | ||
) | ||
); | ||
} | ||
ReactDOM.createRoot(document.getElementById('root')!).render( | ||
ReactDOM.createRoot(document.getElementById("root")).render( | ||
<React.StrictMode> | ||
<App /> | ||
</React.StrictMode>, | ||
) | ||
</React.StrictMode> | ||
); | ||
</script> | ||
@@ -50,0 +50,0 @@ </body> |
5301