Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 499 Bytes

README.md

File metadata and controls

11 lines (9 loc) · 499 Bytes

The dist directory is not ignored by default to enable dynamic imports directly from GitHub.

Importing directly from GitHub makes life easier for plugin maintainers as no publishing process to NPM is required. Users can import via a CDN like https://www.jsdelivr.com/. For example:

// @version refers to a git(hub) release tag
// read more on https://www.jsdelivr.com/?docs=gh
const module = await $import(
  "https://cdn.jsdelivr.net/gh/inlang/plugin-template@version/dist/index.js"
);