Option ‣ modules - chung-leong/zigar GitHub Wiki

A hash table of objects providing information about Zigar modules.

Fields

  • [key] - Path to the Zigar module directory.
  • source - Path to the Zig source file.
  • loader - Path to the standalone JavaScript module loader (optional).

All paths are relative to the configuration file.

Example:

  "modules": {
    "lib/md5.zigar": {
        "source": "zig/md5.zig",
        "loader": "src/md5.js",
    },
    "lib/sha1.zigar": {
        "source": "zig/sha1.zig",
        "loader": "src/sha1.js",
    }
  },