fix(frontend): use exported toast-ui entry to fix nuxt build
This commit is contained in:
@@ -29,8 +29,7 @@ function looksLikeHtml(value: string) {
|
|||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
if (!mountEl.value) return;
|
if (!mountEl.value) return;
|
||||||
const [{ default: Editor }] = await Promise.all([
|
const [{ default: Editor }] = await Promise.all([
|
||||||
// @ts-ignore Package exports for ESM entry do not expose typings correctly.
|
import("@toast-ui/editor"),
|
||||||
import("@toast-ui/editor/dist/esm/index.js"),
|
|
||||||
import("@toast-ui/editor/dist/toastui-editor.css"),
|
import("@toast-ui/editor/dist/toastui-editor.css"),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user