fix: initial gomark wasm

This commit is contained in:
Steven 2024-02-01 19:39:41 +08:00
parent e3afad74ce
commit e78311b3af
5 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "prettier"],
"ignorePatterns": ["node_modules", "dist", "public"],
"ignorePatterns": ["node_modules", "dist", "public", "src/wasm"],
"rules": {
"prettier/prettier": [
"error",

View file

@ -17,7 +17,6 @@
document.documentElement.classList.add("dark");
}
</script>
<script src="wasm_exec.js"></script>
</head>
<body>
<div id="root"></div>

View file

@ -5,13 +5,14 @@ import { Provider } from "react-redux";
import { RouterProvider } from "react-router-dom";
import "./css/global.css";
import "./css/tailwind.css";
import wasmUrl from "./gomark.wasm?url";
import "./helpers/polyfill";
import "./i18n";
import "./less/highlight.less";
import router from "./router";
import store from "./store";
import theme from "./theme";
import wasmUrl from "./wasm/gomark.wasm?url";
import "./wasm/wasm_exec.js";
(async () => {
const go = new window.Go();