Skip to content

Commit eda003f

Browse files
authored
fix: fix pnpm build fail (#355)
1 parent dd7337f commit eda003f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/docs/fluent-editor/demos/formula-chemistry.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import type FluentEditor from '@opentiny/fluent-editor'
33
import katex from 'katex'
44
import { onMounted } from 'vue'
5-
import 'katex/contrib/mhchem/mhchem'
65
import 'katex/dist/katex.min.css'
76
87
window.katex = katex
@@ -22,6 +21,8 @@ onMounted(() => {
2221
import('@opentiny/fluent-editor').then((module) => {
2322
const FluentEditor = module.default
2423
24+
import('katex/contrib/mhchem/mhchem')
25+
2526
editor = new FluentEditor('#chemistry-editor', {
2627
theme: 'snow',
2728
modules: {

packages/fluent-editor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@opentiny/fluent-editor",
33
"type": "module",
4-
"version": "4.0.0-alpha.5",
4+
"version": "4.0.0-alpha.6",
55
"description": "A rich text editor based on Quill 2.0, which extends rich modules and formats on the basis of Quill. It's powerful and out-of-the-box.",
66
"author": "OpenTiny Team",
77
"license": "MIT",

0 commit comments

Comments
 (0)