@umoteam/umo-editor-nuxt 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +11 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<a href="https://github.com/umodoc/editor/commits" target="_blank"><img src="https://img.shields.io/github/commit-activity/m/umodoc/editor" /></a>
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
|
-
A powerful integration that brings the full capabilities of Umo Editor to your
|
|
15
|
+
A powerful integration that brings the full capabilities of Umo Editor to your Nuxt4 App.
|
|
16
16
|
|
|
17
17
|
# 中文介绍
|
|
18
18
|
|
|
@@ -51,7 +51,7 @@ npm i @umoteam/umo-editor-nuxt
|
|
|
51
51
|
```ts
|
|
52
52
|
// nuxt.config.ts
|
|
53
53
|
export default defineNuxtConfig({
|
|
54
|
-
modules: ['@umoteam/umo-nuxt'],
|
|
54
|
+
modules: ['@umoteam/umo-editor-nuxt'],
|
|
55
55
|
umoEditor: {
|
|
56
56
|
// Global configuration, see default options at:
|
|
57
57
|
// https://editor.umodoc.com/en/docs/options/default
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -22,7 +22,6 @@ const module$1 = defineNuxtModule({
|
|
|
22
22
|
"dom-to-image-more": "dom-to-image-more",
|
|
23
23
|
"nzh": "nzh",
|
|
24
24
|
"pure-svg-code": "pure-svg-code",
|
|
25
|
-
"@tiptap-extend/columns": "@tiptap-extend/columns",
|
|
26
25
|
"file64": "file64",
|
|
27
26
|
"highlight.js": "highlight.js",
|
|
28
27
|
"plyr": "plyr"
|
|
@@ -31,6 +30,17 @@ const module$1 = defineNuxtModule({
|
|
|
31
30
|
...nuxt.options.alias,
|
|
32
31
|
...alias
|
|
33
32
|
};
|
|
33
|
+
nuxt.options.vite ||= {};
|
|
34
|
+
nuxt.options.vite.optimizeDeps ||= {};
|
|
35
|
+
nuxt.options.vite.optimizeDeps.include ||= [];
|
|
36
|
+
const optimizeInclude = nuxt.options.vite.optimizeDeps.include;
|
|
37
|
+
if (!optimizeInclude.includes("@tiptap-extend/columns")) {
|
|
38
|
+
optimizeInclude.push("@tiptap-extend/columns");
|
|
39
|
+
}
|
|
40
|
+
nuxt.options.vite.optimizeDeps.esbuildOptions ||= {};
|
|
41
|
+
if (nuxt.options.vite.optimizeDeps.esbuildOptions.sourcemap == null) {
|
|
42
|
+
nuxt.options.vite.optimizeDeps.esbuildOptions.sourcemap = false;
|
|
43
|
+
}
|
|
34
44
|
const publicRuntimeConfig = nuxt.options.runtimeConfig.public ||= {};
|
|
35
45
|
const existingConfig = publicRuntimeConfig.umoEditor ||= {};
|
|
36
46
|
publicRuntimeConfig.umoEditor = {
|