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

projectReferences does not build with the specified tsconfig #1632

Open
unional opened this issue Sep 19, 2023 · 0 comments
Open

projectReferences does not build with the specified tsconfig #1632

unional opened this issue Sep 19, 2023 · 0 comments

Comments

@unional
Copy link
Contributor

unional commented Sep 19, 2023

Expected Behaviour

ts-loader should build the dependent projects using the tsconfig specified in the references field.

Actual Behaviour

It seems like it is just building the dependent projects by using the tsconfig.json.

Steps to Reproduce the Problem

e.g:

- packages
  - app-1
  - pkg-a

/packages/app-1/tsconfig.json:

{
  "references: [{
    "path": "../pkg-a/tsconfig.build.json"
  }]
}

/packages/pkg-a/tsconfig.build.json:

{
  /* some config */
}

/packages/pkg-a/tsconfig.json:

{
  "compilerOptions": {
    "verbatimModuleSyntax": true
  }
}

When building app-1, I got Unknown compiler option 'verbatimModuleSyntx.

So it seems like ts-loader is using the tsconfig.json even though the references point to pkg-a/tsconfig.build.json

I want to use verbatimModuleSyntax in tsconfig.json to tighten type checking and IDE support.
But ts-loader does not recognize it and with this issue, I don't have a way to exclude it.

Location of a Minimal Repository that Demonstrates the Issue.

No repro yet. This happens on some private project atm.

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