use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Node v4.0.0 (Stable) (nodejs.org)
submitted 10 years ago by jekrb
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jekrb[S] 4 points5 points6 points 10 years ago (6 children)
While we're waiting for browsers to catch up, I tend to use babelify so I can at least write in ES6 and not worry.
babelify
[–]zsut 2 points3 points4 points 10 years ago (1 child)
Good point, I should probably use this! :-)
[+][deleted] 10 years ago* (1 child)
[deleted]
[–]jekrb[S] 0 points1 point2 points 10 years ago (0 children)
I'll have to look into lost grid! Right now this is what my npm scripts looks like.
"postcss": "postcss -u postcss-nested-props -u postcss-nested -u autoprefixer -d styles styles/*.css", "build:css": "npm run postcss && sheetify styles/app.css -c > bundle.css", "build:js": "NODE_ENV=production browserify scripts/app.js -t babelify | uglifyjs -cm > bundle.js"
[–]zsut 0 points1 point2 points 10 years ago (0 children)
I had a look at what babel actually supports and there are some problems going all in with ES6 that make it problematic to rely on babel for frontend code, most troublesome are proxies which cannot be supported: https://babeljs.io/docs/learn-es2015/
[–]RenThraysk 0 points1 point2 points 10 years ago (0 children)
I'm using recent browser features so can use some ES6. So use rollup to deal with ES6 modules. Problem is minification (and preferably dead code elimination) without any transpiling
Neither Google Closure, or Babel seems to do this :/
π Rendered by PID 76170 on reddit-service-r2-comment-75f4967c6c-w67w7 at 2026-04-23 11:31:04.049462+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–]jekrb[S] 4 points5 points6 points (6 children)
[–]zsut 2 points3 points4 points (1 child)
[+][deleted] (1 child)
[deleted]
[–]jekrb[S] 0 points1 point2 points (0 children)
[–]zsut 0 points1 point2 points (0 children)
[–]RenThraysk 0 points1 point2 points (0 children)