This is a essential Part of Sakuli which handles the preprocessing of Testfiles. It is usually not nesseccary for Sakuli-Endusers to have any knowledge about the internals of this package.
This package provdies a preset that implements the following lifecycle hooks:
It is required by
@sakuli/legacy but can also be used (and considered) as the default file transformer for any Sakuli extension.
The basic task is to take a given test-file and bundle it together with it's dependencies into a single script-string. Sakuli will than create a Script-Object from this source.
As the name of this package tells, Rollup does the heavy lifting of the bundling process. There is not much magic in this process. Some points are still interesting:
commonjs, in order to work properly with external required modules sakuli also injects the
requirefunction from its scope.
rollup-plugin-typescript2is added as a plugin