phaser icon indicating copy to clipboard operation
phaser copied to clipboard

Plugins config compatible with others bundlers

Open RiCoTeRoX opened this issue 8 years ago • 1 comments

parceljs is another bundler with better and with less configuration. its not compatible with the actual configuration "if typeof" if (typeof PLUGIN_FBINSTANT)

it will be compatible if instead of reading that typeof, read a ENV variable and we can be use .env config files

process.env.PLUGIN_FBINSTANT === "true"

so, we can have a .env.production && .env.developtment with different configs

I can submit a PR if you want @photonstorm

RiCoTeRoX avatar Nov 06 '18 19:11 RiCoTeRoX

Closing this issue due to age. The current solution is less than ideal but works across webpack and rollup, and there are now so many plugins available that adhere to it, it's too late to change it, sorry.

photonstorm avatar Sep 22 '20 21:09 photonstorm