@tnotesjs/core 0.1.4 → 0.1.5
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.
Potentially problematic release.
This version of @tnotesjs/core might be problematic. Click here for more details.
|
@@ -967,6 +967,10 @@ function defineNotesConfig(overrides = {}) {
|
|
|
967
967
|
__TNOTES_IGNORE_DIRS__: JSON.stringify(config.ignore_dirs),
|
|
968
968
|
__TNOTES_ROOT_ITEM__: JSON.stringify(config.root_item),
|
|
969
969
|
...overrideVite?.define
|
|
970
|
+
},
|
|
971
|
+
optimizeDeps: {
|
|
972
|
+
include: ["@vscode/markdown-it-katex"],
|
|
973
|
+
...overrideVite?.optimizeDeps
|
|
970
974
|
}
|
|
971
975
|
},
|
|
972
976
|
transformPageData(pageData, ctx) {
|
package/package.json
CHANGED
|
@@ -102,6 +102,10 @@ export function defineNotesConfig(overrides: UserConfig = {}) {
|
|
|
102
102
|
__TNOTES_ROOT_ITEM__: JSON.stringify(config.root_item),
|
|
103
103
|
...overrideVite?.define,
|
|
104
104
|
},
|
|
105
|
+
optimizeDeps: {
|
|
106
|
+
include: ['@vscode/markdown-it-katex'],
|
|
107
|
+
...overrideVite?.optimizeDeps,
|
|
108
|
+
},
|
|
105
109
|
},
|
|
106
110
|
transformPageData(pageData, ctx) {
|
|
107
111
|
// 为笔记页面注入原始 Markdown 内容(用于一键复制功能)
|