Skip to content

Commit dc9bc31

Browse files
author
Matt Colman
committed
remove phaser dep
1 parent 509cceb commit dc9bc31

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/AssetLoader.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { Plugin } from 'phaser'
21
import isString from 'lodash/isString'
32
import isObject from 'lodash/isObject'
43

54
function warn (type, key) {
65
console.warn(`phaser-manifest-loader: could not find ${type} with key : ${key}`)
76
}
87

9-
export default class AssetLoader extends Plugin {
8+
export default class AssetLoader extends Phaser.Plugin {
109

1110
init (req) {
1211
this.req = req

src/ManifestLoader.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Plugin } from 'phaser'
21
import WebFont from 'webfontloader'
32
import AssetLoader from './AssetLoader'
43

@@ -22,7 +21,7 @@ type RequireContext = {
2221
keys: () => Array<string>,
2322
}
2423

25-
class ManifestLoader extends Plugin {
24+
class ManifestLoader extends Phaser.Plugin {
2625

2726
init (req: RequireContext) {
2827
this.req = req;
@@ -44,7 +43,7 @@ class ManifestLoader extends Plugin {
4443
assetLoader.loadManifest(manifest, assetPostfix).then(() => {
4544
this.game.plugins.remove(assetLoader)
4645
resolve()
47-
})
46+
})
4847
})
4948
}
5049

0 commit comments

Comments
 (0)