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

TypeScriptAsset: Support baseUrl for module resolution #2976

Closed
wants to merge 1 commit into from

Conversation

magcius
Copy link

@magcius magcius commented May 5, 2019

↪️ Pull Request

TypeScript's compiler options allow for supplying a baseUrl where bare module imports will get resolved relative to. This adds support for baseUrl to Parcel.

💻 Examples

{
    "compilerOptions": {
        "baseUrl": "./src"
    }
}
// src/A.ts
import { B } from 'B';
// src/B.ts
export class B {}

@magcius
Copy link
Author

magcius commented May 5, 2019

Test failure is existing, FYI.

@devongovett
Copy link
Member

Thanks for your contribution. I'd like to wait until Parcel 2 to support this as we will have much better support for custom resolvers per-language, and are already planning a TypeScript resolver to implement the TS specific semantics.

@DeMoorJasper
Copy link
Member

Gonna close this in favor of resolvers in Parcel 2

@mistricky
Copy link

Same problem in Parcel2

@mischnic
Copy link
Member

-> #4936

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

Successfully merging this pull request may close these issues.

5 participants