Skip to content

File Viewer v2.1.30

Choose a tag to compare

@wybaby168 wybaby168 released this 15 Jul 11:26

Full packages now use one complete renderer and asset-delivery contract.

  • All eight Full packages include preset-all. Do not install or pass another preset.
  • npm install alone does not publish Workers, WASM, fonts, or vendor assets into the application.
  • Vite: register @file-viewer/vite-plugin with fileViewerRenderers({ copyAssets: true }); dev and build publish the matching assets automatically.
  • Webpack, Vue CLI, Rspack, Rollup, and Umi: run npx --no-install file-viewer-copy-assets ./public/file-viewer once.
  • @file-viewer/web-full: deploy the complete dist/ tree intact. Copying only the entry IIFE is incomplete.

Validated across React 16–19, Vue 2.6/2.7/3, Svelte 5, jQuery, Web Components, Vue CLI 3, Vite dev/build, and PDF/PPTX/Archive/CAD Worker/WASM paths.

Full package guide · Deployment guide