Skip to content
This repository was archived by the owner on May 19, 2022. It is now read-only.
This repository was archived by the owner on May 19, 2022. It is now read-only.

Cannot parse valid tsconfig that includes comments #35

@fourpastmidnight

Description

@fourpastmidnight

I'm currently using Craco-Alias v3.0.1.

I had a very simple tsconfig file:

{
  "extends": "mybase.tsconfig.json" , // Not actual filename
  "compilerOptions": {
    "baseUrl": "./",
    "paths": {
        // I actually had a comment in the  file there, because I desire a different path, eventually...
        // and TypeScript supports comments in tsconfig files (JSONC, or JSON with Comments)
        // but Craco-Alias does not   :'(
        "@myscope/*": "./packages/myscope/*"
    }
  }
}

But as you can see from the comment in the file above, Craco-Alias does not support Json with Comments, even though that's technically what tsconfig files are. (As you can see when you do tsc --init—you get a file full of comments with a very basic configuration, and tsc happily consumes it.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions