@tnotesjs/core 0.1.4 → 0.1.6
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.
|
@@ -967,6 +967,15 @@ 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: [
|
|
973
|
+
"@vscode/markdown-it-katex",
|
|
974
|
+
"dayjs",
|
|
975
|
+
"dayjs/plugin/utc",
|
|
976
|
+
"dayjs/plugin/localizedFormat"
|
|
977
|
+
],
|
|
978
|
+
...overrideVite?.optimizeDeps
|
|
970
979
|
}
|
|
971
980
|
},
|
|
972
981
|
transformPageData(pageData, ctx) {
|
package/package.json
CHANGED
|
@@ -102,6 +102,15 @@ 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: [
|
|
107
|
+
'@vscode/markdown-it-katex',
|
|
108
|
+
'dayjs',
|
|
109
|
+
'dayjs/plugin/utc',
|
|
110
|
+
'dayjs/plugin/localizedFormat',
|
|
111
|
+
],
|
|
112
|
+
...overrideVite?.optimizeDeps,
|
|
113
|
+
},
|
|
105
114
|
},
|
|
106
115
|
transformPageData(pageData, ctx) {
|
|
107
116
|
// 为笔记页面注入原始 Markdown 内容(用于一键复制功能)
|