tur-nr / polymer-redux

Polymer bindings for Redux.
https://tur-nr.github.io/polymer-redux
MIT License
440 stars 67 forks source link

Support using webpack/es6 modules #114

Open ergo opened 6 years ago

ergo commented 6 years ago

Hello, I'm trying to use polymer-redux with webpack, but currently it seems that library assumes that it will be defined in global scope, I can't figure out how to shim the element in /dist.

Would it be possible to maybe provide contents of element in pure js file instead of script or add required exports?

ralexrdz commented 6 years ago

For us adding window. before the line that breaks, worked https://github.com/vientos/polymer-redux/commit/9af81f5ba0adb4e904287e1165bd4224b629c8c9

TimPietrusky commented 6 years ago

You should try https://github.com/tur-nr/polymer-redux/tree/polymer-3 because it was changed to not be in global scope anymore and to be a pure ES6 module.