You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ES6 Generators work in node but not in the browser #206
I think this is a result of the way lazy is packaged up, which is frankly a mess. I'll mark this as a bug for now and come back to this soon as I want to clean the whole thing up.
If you get a look at this, perhaps consider renaming for NPM as having .js in the package name causes issues in webpack. Perhaps going down the route of using an @ prefix (e.g. @lazy.js/core) and splitting things up a bit may be an option to allow subsets to be consumed and good tree-shaking.
I'm sure there are plenty of us that could pitch in on this sort of effort. I often work with @djcsdy who I'm sure will have some ideas.
Activity
dtao commentedon Feb 7, 2018
I think this is a result of the way lazy is packaged up, which is frankly a mess. I'll mark this as a bug for now and come back to this soon as I want to clean the whole thing up.
collinsauve commentedon Feb 22, 2019
Here's a work-around I'm using:
Then your example:
See https://jsfiddle.net/8p7Lmsrn/
nealeu commentedon Sep 10, 2020
Hi @dtao,
If you get a look at this, perhaps consider renaming for NPM as having .js in the package name causes issues in webpack. Perhaps going down the route of using an
@prefix (e.g. @lazy.js/core) and splitting things up a bit may be an option to allow subsets to be consumed and good tree-shaking.I'm sure there are plenty of us that could pitch in on this sort of effort. I often work with @djcsdy who I'm sure will have some ideas.