[{"data":1,"prerenderedAt":164},["ShallowReactive",2],{"project-11450023":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":29,"sentiment":30,"stance_mix":31,"scored_comments":35,"aspects":36,"strip":39,"post_text":41,"what":42,"said":53,"maker_in_thread":103,"shape":105,"grid":109,"attempts":121,"same_week":126,"maker_shows":106,"maker_hidden":156,"reader_version":157,"card":158},"11450023","Wavy","use a tilde in require and import calls","title","Show HN: Wavy – use a tilde in require and import calls","https:\u002F\u002Fgithub.com\u002Fkolodny\u002Fwavy","github.com","kolodny",1460058054,2016,15,6,1397,2264,62,"shown","dev_tools","module resolution","library",[24,25,26,27,28],"require alias","import paths","symlinks","node modules","tilde import","mixed",-0.231,{"positive":32,"neutral":33,"mixed":34,"critical":33},0,2,1,5,{"idea":37,"docs":38},{"positive":32,"critical":33},{"positive":32,"critical":32},[34,34,40,32,40,40],3,null,{"problem":43,"audience":41,"pricing":41,"motivation":41,"time_to_build":41,"stack":51,"openness":52,"stage":52,"team_size":52},{"value":44,"source":45,"evidence":46},"Long relative paths like ..\u002F..\u002F in require and import calls","commenter",[47],{"id":48,"by":49,"text":50},"11454470","BinaryBullet","I believe 'babel-root-import' works on windows (haven't tested myself). It's a lifesaver if you are already working w\u002F babel (which I am). It really saves time when you forget…",[],"unknown",{"praise":54,"objections":59,"requests":74,"questions":75,"alternatives":83},[55],{"value":56,"source":45,"evidence":57},"Useful for avoiding relative path nesting",[58],{"id":48,"by":49,"text":50},[60,67],{"value":61,"source":45,"evidence":62},"Symlink approach may hide where files come from and cause circular references",[63],{"id":64,"by":65,"text":66},"11451963","pedalpete","this sounds like a bit of a bad idea, but I'm willing to be open minded and convinced. I develop on Windows, I know I'm in the minority, but I recently took over a project which…",{"value":68,"source":45,"evidence":69},"Better solved by configuring webpack search paths",[70],{"id":71,"by":72,"text":73},"11452530","nathancahill","Indeed. You'd be much better off using webpack (or similar) to set the search paths, and then just require('foo').",[],[76],{"value":77,"source":45,"evidence":78},"Can webpack map a namespace prefix to the project root?",[79],{"id":80,"by":81,"text":82},"11453463","mbrock","Lazy question because I seem to remember not finding this in the Webpack documentation: Can I configure Webpack so that ``` require(\"app\u002Ffoo\") ``` imports `foo` from my project…",[84,92,96],{"value":85,"source":45,"evidence":86},"Webpack alias config",[87,91],{"id":88,"by":89,"text":90},"11492537","clooth","Yep, you can do this via the webpack alias config object. I personally have \"root\" pointing to the root directory of my app that is called app. :)",{"id":71,"by":72,"text":73},{"value":93,"source":45,"evidence":94},"babel-root-import",[95],{"id":48,"by":49,"text":50},{"value":97,"source":45,"evidence":98},"detachkify browserify transform",[99],{"id":100,"by":101,"text":102},"11462949","adnanh","Interesting, I wasn't the only one who had this issue. I wrote a similar browserify transform [1] that lets you use absolute path in import and require statements (basically…",{"comments":32,"answered":32,"key":104},[],{"commenters":15,"max_depth":106,"maker_replies":32,"first_comment_mins":107,"lifespan_hours":108},4,339,146,[110,112,113,115,117,119],[64,32,34,111,65,32],"project\u002Fcritical\u002Fidea",[71,32,34,111,72,32],[80,32,40,114,81,32],"project\u002Fneutral\u002Fdocs",[88,32,32,116,89,32],"other\u002Fneutral\u002Fnone",[48,32,40,118,49,32],"project\u002Fmixed\u002Fidea",[100,34,40,120,101,32],"project\u002Fneutral\u002Fidea",[122,125],{"id":123,"t":124,"points":34,"comments":32},"11444009",1459993404,{"id":4,"t":12,"points":14,"comments":15},[127,132,137,142,147,152],{"id":128,"name":129,"points":130,"category":131},"11469135","Compelling Science Fiction",311,"creative",{"id":133,"name":134,"points":135,"category":136},"11483572","Wit.ai Bot Engine",174,"ai",{"id":138,"name":139,"points":140,"category":141},"11484770","Min",151,"consumer_social",{"id":143,"name":144,"points":145,"category":146},"11461977","Booleans",143,"web_saas",{"id":148,"name":149,"points":150,"category":151},"11472612","Botlist",128,"productivity",{"id":153,"name":154,"points":155,"category":20},"11476681","Alphasheets",72,false,"v2",{"id":159,"name":5,"line":6,"ai":156,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":160,"top":18,"kw":161,"maker":11,"domain":10,"tier":19,"attempts":33,"strip":162,"url":9,"mix":163,"praise":56,"objection":61,"sub":21},11450023,-0.23,[24,25,26,27,28],"113033",[32,33,34,33],1793990941361]