Skip to main content

TripettoRunner module

The TripettoRunner module contains all the exported symbols of the Tripetto Runner library package. It is also the library name of the UMD build of the package (the version that can run directly in the browser).

// Import the module
import { TripettoRunner } from "@tripetto/runner";

// Or use the default export
import TripettoRunner from "@tripetto/runner";

// Or import the entire module with a custom name
import * as TripettoRunner from "@tripetto/runner";

If you can import specific symbols, you should always go with that. Things like tree shaking are only possible when importing specific symbols.

import { Runner } from "@tripetto/runner";

When using the UMD build in the browser, the module will be available in the window object and as a global variable. So you can reference the module using window.TripettoRunner or just TripettoRunner.