Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Support baseUrl and paths resolution as implemented in TS 1.9 #156

@guncha

Description

@guncha

I was trying to use awesome-typescript-loader with typescript@next to see if I could set it all up to avoid this whole import {..} from "../../../../../dep business and it seems like baseUrl option solves it, but only when not running through the loader.

When running with the loader, I'm getting an error:

Error: Cannot resolve module 'dep' in app
  at ResolutionError.Error (native)
  at new ResolutionError (node_modules/awesome-typescript-loader/dist.babel/deps.js:577:88)
  at node_modules/awesome-typescript-loader/dist.babel/deps.js:402:37

Does the loader have its own module resolution strategy? If so, can we extend it to support what's being discussed in microsoft/TypeScript#5039 or perhaps use the compiler's?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions