Wavy
Dev tools
module resolution
SHOW HN2016
15points
6comments
#1,397of 2,264 in 2016
Top 62%of 2016 by points
How HN took it
MixedNo clear lean
0 positive, 2 neutral or asking, 1 mixed, 2 critical, out of 5 comments about the project. Thread score -0.23.
Idea: 0 for, 2 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Useful for avoiding relative path nesting
From 1 comment
I believe 'babel-root-import' works on windows (haven't tested myself). It's a lifesaver if you are already working w/ babel (which I am). It really saves time when you forget…
BinaryBullet on HN
Objections
Symlink approach may hide where files come from and cause circular references
From 1 comment
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…
pedalpete on HN
Better solved by configuring webpack search paths
From 1 comment
Indeed. You'd be much better off using webpack (or similar) to set the search paths, and then just require('foo').
nathancahill on HN
Questions
Can webpack map a namespace prefix to the project root?
From 1 comment
Lazy question because I seem to remember not finding this in the Webpack documentation: Can I configure Webpack so that ``` require("app/foo") ``` imports `foo` from my project…
mbrock on HN
Alternatives named
Webpack alias config
From 2 comments
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. :)
clooth on HNIndeed. You'd be much better off using webpack (or similar) to set the search paths, and then just require('foo').
nathancahill on HN
babel-root-import
From 1 comment
I believe 'babel-root-import' works on windows (haven't tested myself). It's a lifesaver if you are already working w/ babel (which I am). It really saves time when you forget…
BinaryBullet on HN
detachkify browserify transform
From 1 comment
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…
adnanh on HN