@sdeverywhere/build

August 11, 2026 ยท View on GitHub

Configuration

The build function expects either:

  • a UserConfig object, or
  • a path to an sde.config.js file that exports a config function returning a UserConfig object

Example sde.config.js file:

export async function config() {
  return {
    modelFiles: ['example.mdl'],
    modelSpec: async () => {
      return {
        inputs: [{ varName: 'Y', defaultValue: 0, minValue: -10, maxValue: 10 }],
        outputs: [{ varName: 'Z' }]
      }
    }
  }
}

Build API

ModelSpec API

Plugin API