-
-
Notifications
You must be signed in to change notification settings - Fork 677
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
the 8.13.0 version will report a error #230
Comments
when i take it back to 8.7.0, it will work! |
I am getting this on the latest version too, works when the code isn't run through minifier |
Hey guys, thank you for reporting this. |
Just to let you know, in version 8.13 and 10.13 I changed the content of the |
I include LazyLoad by (npm install): import LazyLoad from 'vanilla-lazyload'; This is the usage: new LazyLoad({}) The lazyload.min.js will report a error; |
Hey @fakership, |
Hey @fakership, I've created this GitHub test repo in which I call LazyLoad as an ES2015 module, and everything works as expected. So I think the problem might be related to something else you are using to bundle or minify your code. What are you using? WebPack 4? Rollup.js? Babel is included in the mix? Please share more information so I can investigate more. |
I was able to reproduce the bug using WebPack to bundle LazyLoad in this test repo. |
yes, I bundle LazyLoad by webpack4. |
I found the issue. It was a mistake in my package.json |
Thanks! |
Just released 8.15.0 and 10.15.0 on npm. |
I've tested it in this repo and checked that now it works correctly. Thank you @fakership and @massic80 and @l3aconator for reporting your issues! |
It seems that the export object is not a function
The text was updated successfully, but these errors were encountered: