Hacker News new | ask | show | jobs
by jplhomer 1459 days ago
That's good feedback. The directive approach relies much less on initial discoverability and tedious work which enables it, like naming each and every JS module a certain way up front. Instead, it relies on error handling and developer response/correction. I'm definitely curious to see whether that tradeoff is worthwhile.
1 comments

I know Typescript now has a `moduleSuffixes`[0] option that may be be a reference point for making this easier. I am imagining you want to do this due to compiler conditions for build tooling no?

This makes it "transparent" to the developer but retains the file naming approach, best of both worlds?

[0]: https://devblogs.microsoft.com/typescript/announcing-typescr...