@docsector/docsector-reader 0.2.5 → 0.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docsector/docsector-reader",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "A documentation rendering engine built with Vue 3, Quasar v2 and Vite. Transform Markdown into beautiful, navigable documentation sites.",
5
5
  "productName": "Docsector Reader",
6
6
  "author": "Rodrigo de Araujo Vieira",
@@ -170,10 +170,14 @@ export function createQuasarConfig (options = {}) {
170
170
  // baked into its chunk — creating two separate JS module instances
171
171
  // with different Symbols. This breaks inject/provide: useRoute(),
172
172
  // useStore(), useI18n() all return undefined.
173
+ // CJS packages (prismjs, markdown-it, etc.) also need explicit
174
+ // inclusion to be properly converted to ESM by Vite's optimizer.
173
175
  viteConf.optimizeDeps = viteConf.optimizeDeps || {}
174
176
  viteConf.optimizeDeps.include = [
175
177
  ...(viteConf.optimizeDeps.include || []),
176
- 'vue', 'vue-router', 'vuex', 'vue-i18n'
178
+ 'vue', 'vue-router', 'vuex', 'vue-i18n',
179
+ 'prismjs', 'markdown-it', 'markdown-it-attrs',
180
+ 'hjson', 'q-colorize-mixin'
177
181
  ]
178
182
 
179
183
  if (!isStandalone) {