@docsector/docsector-reader 0.2.7 → 0.2.8

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/bin/docsector.js CHANGED
@@ -23,7 +23,7 @@ const packageRoot = resolve(__dirname, '..')
23
23
  const args = process.argv.slice(2)
24
24
  const command = args[0]
25
25
 
26
- const VERSION = '0.2.7'
26
+ const VERSION = '0.2.8'
27
27
 
28
28
  const HELP = `
29
29
  Docsector Reader v${VERSION}
@@ -71,7 +71,7 @@ function getTemplatePackageJson (name) {
71
71
  serve: 'docsector serve'
72
72
  },
73
73
  dependencies: {
74
- '@docsector/docsector-reader': '^0.2.7',
74
+ '@docsector/docsector-reader': '^0.2.8',
75
75
  '@quasar/extras': '^1.16.12',
76
76
  'quasar': '^2.16.6',
77
77
  'vue': '^3.5.13',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docsector/docsector-reader",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
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",
@@ -180,6 +180,16 @@ export function createQuasarConfig (options = {}) {
180
180
  'hjson', 'q-colorize-mixin'
181
181
  ]
182
182
 
183
+ // Exclude boot files from pre-bundling.
184
+ // Boot files (especially boot/i18n) import the consumer's src/i18n/index.js
185
+ // which uses import.meta.glob — a compile-time Vite directive that only
186
+ // works in source files. If pre-bundled, the glob calls become dead code
187
+ // and no i18n messages are loaded.
188
+ viteConf.optimizeDeps.exclude = [
189
+ ...(viteConf.optimizeDeps.exclude || []),
190
+ 'boot/i18n', 'boot/store', 'boot/QZoom', 'boot/axios'
191
+ ]
192
+
183
193
  if (!isStandalone) {
184
194
  // --- Consumer project mode ---
185
195
  // Allow Vite to serve files from the package root (needed for symlinked/npm-linked packages)