resolving incompatibility with webpack