Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

PhaserFX - Game Effects Library for Phaser 3

💥 Add explosive effects to your Phaser 3 games with one line of code! · By JanekovicS

Help with webpack

A topic by Phantonaut created 5 days ago Views: 12 Replies: 2
Viewing posts 1 to 3

Would appreciate some help getting this to work with Webpack.   I do not see the esm version.  The files in the download are:

phaser-fx.cjs

phaser-fx.d.ts

phaser-fx.global.ts

phaser-fx.ts

When I try something like:

import PhaserFX from "../PhaserFX/phaser-fx.js"

I get a module parse failure.


Developer

Hello,

Can you try this:

import * as PhaserFX from "../PhaserFX/phaser-fx.cjs";

and also add ‘cjs’ to webpack config resolve extensions array.

Got it working with babel loader / webpack 4. 

Great addition to Phaser!