News for hackers. Stuff that matters.
Re:ES modules: A cartoon deep-dive by Can_Not on Wednesday March 28, 2018 @06:17PM (#16702533)
You can set a custom alias, for example nuxt uses ~ for project root. I've seen projects use @ also.
Re:ES modules: A cartoon deep-dive by panopticon on Wednesday March 28, 2018 @07:20PM (#16702995)
That's not part of the ES module spec. That's something transpilers (like Babel + a plugin) support.
Re:ES modules: A cartoon deep-dive by underwater on Thursday March 29, 2018 @09:00AM (#16706600)
Can you also teach systems with their own resolution about the aliases (Jest, Flow, etc.)