mirror of https://github.com/usememos/memos.git
fix: initial gomark wasm
This commit is contained in:
parent
e3afad74ce
commit
e78311b3af
|
|
@ -13,7 +13,7 @@
|
||||||
"sourceType": "module"
|
"sourceType": "module"
|
||||||
},
|
},
|
||||||
"plugins": ["react", "@typescript-eslint", "prettier"],
|
"plugins": ["react", "@typescript-eslint", "prettier"],
|
||||||
"ignorePatterns": ["node_modules", "dist", "public"],
|
"ignorePatterns": ["node_modules", "dist", "public", "src/wasm"],
|
||||||
"rules": {
|
"rules": {
|
||||||
"prettier/prettier": [
|
"prettier/prettier": [
|
||||||
"error",
|
"error",
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@
|
||||||
document.documentElement.classList.add("dark");
|
document.documentElement.classList.add("dark");
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script src="wasm_exec.js"></script>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,14 @@ import { Provider } from "react-redux";
|
||||||
import { RouterProvider } from "react-router-dom";
|
import { RouterProvider } from "react-router-dom";
|
||||||
import "./css/global.css";
|
import "./css/global.css";
|
||||||
import "./css/tailwind.css";
|
import "./css/tailwind.css";
|
||||||
import wasmUrl from "./gomark.wasm?url";
|
|
||||||
import "./helpers/polyfill";
|
import "./helpers/polyfill";
|
||||||
import "./i18n";
|
import "./i18n";
|
||||||
import "./less/highlight.less";
|
import "./less/highlight.less";
|
||||||
import router from "./router";
|
import router from "./router";
|
||||||
import store from "./store";
|
import store from "./store";
|
||||||
import theme from "./theme";
|
import theme from "./theme";
|
||||||
|
import wasmUrl from "./wasm/gomark.wasm?url";
|
||||||
|
import "./wasm/wasm_exec.js";
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
const go = new window.Go();
|
const go = new window.Go();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue