Skip to content

Commit f646f4f

Browse files
committed
fix(phaser-ce): handle build issue
1 parent 7596989 commit f646f4f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/canvas-phaser-ce/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/canvas-phaser-ce",
3-
"version": "1.0.0-beta.0",
3+
"version": "1.0.0-beta.1",
44
"description": "Tools for using Phaser-ce to build native 2D games in NativeScript 👾",
55
"main": "index",
66
"typings": "index.d.ts",

packages/canvas-phaser-ce/phaser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import '@nativescript/canvas-polyfill';
1+
require('@nativescript/canvas-polyfill');
22

33

44
interface TNSPhaserCe {
55
PIXI: any;
66
Phaser: any;
77
}
88

9-
export declare var global: NodeJS.Global & typeof globalThis & TNSPhaserCe;
9+
export declare var global: TNSPhaserCe;
1010

1111

1212
function initPhaser() {

0 commit comments

Comments
 (0)