I have a large amount of javascript files split into 4 subdirectory in my app. In grunt I grab all of them and compile them into one file. These files do not have a module.exports function
I want to use webpack and split it into 4 parts. I don't want to manually go in and require all my files.
...
@ndugger short story, you can set up a require or System.import that hits the webpack module table/index/thing rather than really importing stuff, then tell webpack to include everything that matches a glob.
@ndugger Other people can utilize that format, it's not like they can trademark it. Telling people Fuck you, you can't make a video is a similar format isn't cool.
> Seeing bugs and issues continue to roll in and being mentally unable to address them has led to feelings of failure and depression. When looking at the moment project, I could only see the negatives. The bugs and misnomers and mistakes I had made. It let to a cycle of being too depressed to contribute, which led to being depressed because I wasn’t contributing.
literally maintaining his own project drove him to depression
@Shubham Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@SahandTheGreat Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
I've got a jQuery .confirm dialog in some JS code I'm modifying it. It used to display the dialog, get either confirm or cancel, and return true/false accordingly. It used to have a call to another function within the "continue" button action; I moved that to another routine and call it from elsewhere; I'm returning a true/false from the confirm dialog to indicate to the caller whether things went all right.
My problem is that the dialog doesn't appear until after a number of other lines have executed; then it appears and disappears immediately.
I have a function foo which makes an Ajax request. How can I return the response from foo?
I tried to return the value from the success callback as well as assigning the response to a local variable inside the function and return that one, but none of those ways actually return the response.
fu...
(sigh) Am trying to modify working code to do something slightly different. Would rather avoid reworking all the logic flow.
So if I implement a callback for the Ajax call, do I then just let the routine that calls Ajax run to completion? logic flow then picks back up at the callback?
I am tolerably familiar with real-time programming, but am a JS novice.
@FilipDupanović Our changelog isn't that expansive, because I make progressive commits. Regardless, if they read the part where fixes for certain issues were on the experimental branch of MS's api and not the release version, I wouldn't have this headache.
I run into a lot of people that want to drop their job and switch to development and try to help them out... you really need to sit down and talk to them, pointing them to the docs at that stage is just like saying GTFO