Search Unity

Showcase Easy Unity .jslib - Rollup plugin

Discussion in 'Scripting' started by Kemsai, Feb 14, 2023.

  1. Kemsai

    Kemsai

    Joined:
    Oct 10, 2013
    Posts:
    1
    Hello,
    I want to share my rollup plugin which will generate .jslib, and C# code from your .ts code.
    Even if it's still in early version, it should speed up WebGL .jslib library development. (Not perfect, but I am already using it, and it's super helpful).

    https://www.npmjs.com/package/rollup-plugin-unity-jslib

    It works only with Typescript code because library will check variable types for better C# code generation.

    I also recommend adding https://www.npmjs.com/package/rollup-plugin-copy to your project to copy output files directly to Unity asset directory.