kviewer 0.2.3 → 0.2.4
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/dist/module.json +1 -1
- package/dist/module.mjs +11 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -37,7 +37,17 @@ const module$1 = defineNuxtModule({
|
|
|
37
37
|
"konva",
|
|
38
38
|
"pdf-lib",
|
|
39
39
|
"pdfjs-dist/legacy/build/pdf.mjs",
|
|
40
|
-
"pdfjs-dist/web/pdf_viewer.mjs"
|
|
40
|
+
"pdfjs-dist/web/pdf_viewer.mjs",
|
|
41
|
+
// unicode-font.ts registers @pdf-lib/fontkit for Unicode font
|
|
42
|
+
// embedding. Its ESM build does `import pako from 'pako'`, but pako 1.x
|
|
43
|
+
// is CJS with no `default` export — so unless fontkit is pre-bundled
|
|
44
|
+
// (where esbuild applies CJS interop and synthesizes the default), the
|
|
45
|
+
// browser receives the raw pako index.js and throws "does not provide
|
|
46
|
+
// an export named 'default'". The `kviewer >` prefix anchors resolution
|
|
47
|
+
// through this module, so it works even when pnpm leaves fontkit
|
|
48
|
+
// un-hoisted in the consumer (a bare '@pdf-lib/fontkit' entry would not
|
|
49
|
+
// resolve from the consumer root and Vite would silently skip it).
|
|
50
|
+
"kviewer > @pdf-lib/fontkit"
|
|
41
51
|
);
|
|
42
52
|
});
|
|
43
53
|
nuxt.options.runtimeConfig.public.kviewer = {
|