Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Centralized events require the actual implementation to be part of the main bundle loaded on startup so that the functions are available in the global context.

With this approach, there are no constraints in terms of how the files are structured.
It is important that the functions are exported as part of the main index.ts.

Code Block
languagejs
titlehelloWorld.ts
export default function helloWorld() {?? console.log('Hello world!');
}