polymer-redux icon indicating copy to clipboard operation
polymer-redux copied to clipboard

Support using webpack/es6 modules

Open ergo opened this issue 6 years ago • 2 comments

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?

ergo avatar Nov 10 '17 12:11 ergo

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

ralexrdz avatar Nov 13 '17 20:11 ralexrdz

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.

TimPietrusky avatar Dec 07 '17 06:12 TimPietrusky