Kris Wood
02/07/2020, 10:28 PMjkabot
02/07/2020, 11:27 PM/**
* SuiteAnswers 70271 and 70272
* Shut the whole thing down if there are any uncaught errors in map or reduce stages.
* Applciation server restart errors are ignored.
*/
export const config: EntryPoints.MapReduce.config = {
exitOnError: true
};
export function getInputData() {
...
}
Kris Wood
02/07/2020, 11:27 PMjkabot
02/07/2020, 11:29 PMexport
is just adding things to the object returned by the AMD module
so a script that just has
export const magicNumber = 42;
would translate to
define([], function() {
return {
magicNumber: 42
};
});
jkabot
02/07/2020, 11:31 PMexports
object
but that is just another way AMD lets you accomplish the same thingKris Wood
02/07/2020, 11:57 PM