Installation
Copy as MarkdownFrom npm
Section titled “From npm”npm i @rupamotion/playerThe types come with the entries (the package exports), so TypeScript needs moduleResolution set to bundler,
node16 or nodenext. The classic node resolution does not read exports. The package has no engines field: it
runs in browsers and imports on any server.
From a CDN, without a build step
Section titled “From a CDN, without a build step”Always name an exact version, never latest:
<script type="module" src="https://cdn.jsdelivr.net/npm/@rupamotion/player@0.1.0/dist/element.js"></script>That line loads the <rupa-player> element and mounts every snippet root on the page.
Pin a version
Section titled “Pin a version”npm i @rupamotion/player@0.1.0