orbit/js/vendor/phaser.js

15 lines
604 B
JavaScript

// The single shim for Phaser in this project — every module imports Phaser
// from here, so swapping the framework version is a one-file change.
//
// Vendored: Phaser 4.2.1 ("Giedi") — lib/phaser.min.js (UMD build, MIT).
// To change version: replace lib/phaser.min.js with the UMD build you want
// (it must set `window.Phaser`) and update the note above.
if (typeof window === 'undefined' || !window.Phaser) {
throw new Error(
'Phaser is not loaded. Make sure lib/phaser.min.js exists and is ' +
'referenced in index.html before the game modules.'
);
}
export default window.Phaser;