import('./index.mjs')
  .then(({ Temporal, Intl }) => {
    globalThis.Temporal = { ...Temporal };
    Object.assign(globalThis.Intl, Intl);
  })
  .catch((err) => {
    console.error(err);
    process.exit(1);
  });

if (module.parent && module.parent.id === 'internal/preload') {
  // Running unbundled as 'npm run playground'
  globalThis.__debug__ = true;
}

import('./index.mjs')
  .then(({ Temporal, Intl }) => {
    globalThis.Temporal = { ...Temporal };
    Object.assign(globalThis.Intl, Intl);
  })
  .catch((err) => {
    console.error(err);
    process.exit(1);
  });

Enable debug mode when running via 'npm run playground'
Enable debug mode when running via 'npm run playground'

This should be OK because none of the rollup configs will process
lib/initialise.js. So when running via 'npm run playground' and
therefore 'node -r lib/initialise.js' we can detect this and define a
global __debug__ variable, which will be detected by the checks that
normally get replaced out.

See: #643
