GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — `tsconfig.json` with `allowJs: true` does not downlevel JS · Issue #873 · vercel/ncc

tsconfig.json with allowJs: true does not downlevel JS #873

New issue
Copy link
New issue
Copy link
Open
Open
tsconfig.json with allowJs: true does not downlevel JS#873
Copy link
Labels
bugSomething isn't working

Description

@please-rewrite
please-rewrite
opened on Feb 15, 2022
Issue body actions

I have the following tsconfig.json in a mixed project (js/ts):

{
  "compilerOptions": {
    "target": "es2019",
    "module": "commonjs",
    "moduleResolution": "node",
    "allowJs": true,
    "esModuleInterop": true,
    "strict": true,
    "outDir": "dist",
    "skipLibCheck": true,
    "sourceMap": true
  },
  "include": ["src/**/*"],
  "exclude": ["node_modules"]
}

It seems like the ts transpiler is only being applied to the typescript files and the js files are taking a different path.

I only assume this because I have optional chaining in both the js and ts files and only the ts files get the proper conversion from ?. operation to chained null checks.

Activity

  1. styfle
    added
    bugSomething isn't working
    on Mar 1, 2022
  2. styfle
    changed the title [-]Mixed Project Compilation Issues[/-] [+]tsconfig.json with `allowJs: true` does not downlevel JS[/+] on Mar 1, 2022
  3. styfle
    changed the title [-]tsconfig.json with `allowJs: true` does not downlevel JS[/-] [+]`tsconfig.json` with `allowJs: true` does not downlevel JS[/+] on Mar 1, 2022
  4. dorny
    added a commit that references this issue on Aug 23, 2022

    Downgrade got package to v11.x

    aba461c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.