TripettoAutoscroll module
The TripettoAutoscroll
module contains all the exported symbols of the Tripetto Autoscroll Stock Runner 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 { TripettoAutoscroll } from "@tripetto/runner-autoscroll";
// Or use the default export
import TripettoAutoscroll from "@tripetto/runner-autoscroll";
// Or import the entire module with a custom name
import * as TripettoAutoscroll from "@tripetto/runner-autoscroll";
info
If you can import specific symbols, you should always go with that. Things like tree shaking are only possible when importing specific symbols.
import { run } from "@tripetto/runner-autoscroll";
tip
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.TripettoAutoscroll
or just TripettoAutoscroll
.