Comments (9)
Same here!
Do you know what was the last versión working good ?
from retinajs.
Same
from retinajs.
Temp fix: add var exports={};
to retina.js
from retinajs.
@migueldemoura temp fix makes it work for now.
Seems like it's the same problem as this: http://stackoverflow.com/questions/33294705/gulp-babel-exports-is-not-defined
from retinajs.
This is a duplicate of #264
from retinajs.
Same here. BTW where do you add migueldemoura's fix in the retina.js file? Tried at the end did not work. Sorry don't know JS. :S
from retinajs.
@TsuNut add it above:
Object.defineProperty(exports, "__esModule", { value: true });
on line 11 in the retina.js file
from retinajs.
Thanks! However, I included the fix on line 11 as per instructed. No change. Reverted to 2.0.0, still no change. Wonder if using Gulp and/or concatenating has something to do with my issue?
from retinajs.
Beware, adding exports as a variable will make all of your other scripts think you're using node.js, if you're not, many other scripts will fail!
from retinajs.
Related Issues (20)
- Why does the LESS mixin set background-size?
- `exports = {}` is not added in non-minified dist files HOT 3
- How to discard SVG images to try loading @2x? HOT 1
- Cannot minify JS for retina.js HOT 2
- The minified version has a bug: OnLoad event does not process any images HOT 4
- Is it another bug (except the exports)?
- devicePixelRatio rounding
- (2.1.0) Not works on mobile IE10 HOT 1
- retinajs should not be defining "exports" if it isn't available
- Refresh retinajs after img src changed HOT 1
- retina.js runs automatically despite using import or require HOT 2
- How to re-initialize script on already processed images? HOT 2
- <img src="/images/my_image.png" data-rjs="/images/2x/my-image.png" />
- Support for 2x & 3x through data attributes HOT 3
- if i dont’t load 1.x image will cause the waste of resources
- Download Button Goes Wrong Version of Retina.js
- Readme issue HOT 1
- Is it compatible with lazysizes ?
- =
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from retinajs.