Because yield and function* are used in a script, script engines that do not support generators fails hard due to syntax errors. Separating the scripts make the engine parse each of the scrips individually and syntax errors in a certain script do not break the rest of the scripts.
Because yield and function* are used in a script, script engines that do not support generators fails hard due to syntax errors. Separating the scripts make the engine parse each of the scrips individually and syntax errors in a certain script do not break the rest of the scripts.