The intended way to use this is:
if (typeof scaffolding !== 'undefined') {
// in packager
}
Outside of the packager, trying to access scaffolding any other way will throw a
reference error, not return undefined (TypeScript does not let us type that unfortunately)
Only exists in files generated by the packager.
The intended way to use this is: if (typeof scaffolding !== 'undefined') { // in packager }
Outside of the packager, trying to access scaffolding any other way will throw a reference error, not return undefined (TypeScript does not let us type that unfortunately)