GlobalVariableNoEvalTemplate.ts 357 B

1234567891011121314
  1. /**
  2. * @returns {string}
  3. */
  4. export function GlobalVariableNoEvalTemplate (): string {
  5. return `
  6. var that = (typeof window !== 'undefined'
  7. ? window
  8. : (typeof process === 'object' &&
  9. typeof require === 'function' &&
  10. typeof global === 'object')
  11. ? global
  12. : this);
  13. `;
  14. }