A Vite plugin (v0.0.2, early release) that packages build output into SCORM-compliant ZIP files for SCORM 1.2 and SCORM 2004 4th Edition. It runs during the closeBundle hook, validates course metadata, and generates imsmanifest.xml with ZIPs. Key differentiator: integrates SCORM packaging into Vite builds with TypeScript support, offering a custom loader for non-Svelte projects. Currently limited to single SCO packages with no sequencing or navigation rules.
npm install vite-plugin-scormVerified import paths — ran on the pinned version, not inferred.
Configure vite-plugin-scorm with course metadata and build to generate SCORM 1.2 and 2004 ZIP packages.
Ensure src/course.ts exists with proper CourseMetadata export, or provide a loadCourse function.
All metadata must be defined at build time; no runtime modification possible.
Use only for production builds; ignore SCORM packaging during vite dev.
Remove unwanted files from build output before packaging or implement a custom solution.
Run `npm install vite-plugin-scorm` and ensure vite >= 5.0.0 is installed.
Use `import { scormPackager } from 'vite-plugin-scorm';`Ensure the exported `course` object includes all required fields. Example: { id: 'c1', title: 'Test', minScore: 0, maxScore: 100 }