Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support using webpack/es6 modules #114

Open
ergo opened this issue Nov 10, 2017 · 2 comments
Open

Support using webpack/es6 modules #114

ergo opened this issue Nov 10, 2017 · 2 comments

Comments

@ergo
Copy link

ergo commented Nov 10, 2017

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
Copy link

For us adding window. before the line that breaks, worked
vientos@9af81f5

@TimPietrusky
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants