NPM & TypeScript
Using Node.js
We strongly recommend that you to use Node.js project to build your plugins.
With TypeScript or other languages that require transpilation, you need a build tool to build them, Webpack, Rollup or Vite is the best choice.
You can also use any front-end library to build custom UI, e.g. React, Preact, Vue, Svelte, SolidJS, etc. With front-end tooling, its hot-reload/HMR will help you to do faster.
INFO
Note that NPM packages those are designed to run only in NodeJS cannot be used to build plugins.
TIP
With the build tool, the output of your bundled assets may have incorrect paths. Please refer to the Asset Handling to make correct them.
Using TypeScript
Example plugins
- balance-buff-viewer - Shows Aram balance buffs/nerfs in champ-select. Built with Vite and TypeScript.