fix again
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-05-07 02:16:02 -06:00
parent ecb91f5ca8
commit 73884a075b
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
import path from "node:path"
import { defineConfig, loadEnv } from "@rsbuild/core"
import { pluginVue } from "@rsbuild/plugin-vue"
import AutoImport from "unplugin-auto-import/rspack"
@@ -84,8 +85,12 @@ const config: ReturnType<typeof defineConfig> = defineConfig(({ envMode }) => {
oj: "./src/oj",
admin: "./src/admin",
shared: "./src/shared",
// 强制 @wangeditor-next/editor 所有导入ESM/CJS走同一个文件
// 避免 Rspack v2 按 exports conditions 分别解析 .mjs/.js 产生双实例
"@wangeditor-next/editor$": path.resolve(
"./node_modules/@wangeditor-next/editor/dist/index.js"
),
},
dedupe: ["slate", "slate-dom", "slate-react", "is-hotkey"],
},
server: {
port: 5173,

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import {
import type {
IDomEditor,
IEditorConfig,
IToolbarConfig,