I've just tried to import phaser.js along this MDN document.
But it raises errors no matter how the import statement is applied.
import Phaser from './phaser.js';
=> Uncaught SyntaxError: The requested module does not provide an export named 'default'
import {Phaser} from './phaser.js';
=> Uncaught SyntaxError: The requested module does not provide an export named 'Phaser'
import * as phaser from './phaser.js';
=> Uncaught TypeError: Cannot set property 'PIXI' of undefined
It seems phaser.js doesn't have the export statements.
So, could someone advise me how to add an export statement to phaser.js so that it can be imported by other modules?