PETER Flannery (2017-06-02T16:08:02.000Z)
flannery.peter at ntlworld.com (2017-06-02T16:29:26.551Z)
Currently there isn't a way to import a module using an app root module specifier. I.E. `import * as Stuff from 'utils/someUtil.js'` Relative paths suffices in the simplest applications but not being able to resolve from the root of the app leads to a complex stack of relative path entries I.E. `../../..` One example of where these complex stacks arise is importing source modules from within test modules where usually tests are defined in a test folder separated from the source. Another issue arises when moving a file to another location which then leads to recalculating the relative path stack. The idea I have is to have custom alias mappings which would be defined in a place where the host can find and resolve module specifier aliases I.E. an `.es` file in the app root containing a json map of aliases. The maps could possibly be auto generated using build tools when publishing an app.