Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup module resolution should observe tsconfig compilerOptions#paths #154

Open
sndrs opened this issue Oct 13, 2021 · 0 comments
Open

Comments

@sndrs
Copy link

sndrs commented Oct 13, 2021

Feature Use Case

We have compilerOptions#paths defined to map package imports in a monorepo to their source code paths, e.g.

{
  "compilerOptions":{
    "paths": {
      "@guardian/src-accordion": ["../src-accordion/index"]
    }
  }
}

Rollup doesn't observe these. We can get round it by using the (nearly) identical config with @rollup/plugin-alias.

Feature Proposal

Convey compilerOptions#paths to rollup's module resolution algorithm.

@sndrs sndrs changed the title Rollup module resolution should observe tsconfig paths Rollup module resolution should observe tsconfig compilerOptions#paths Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant