Skip to content

Typescript errors not being thrown #1631

@ghost

Description

Hi, first of all I would like to thank @evanw for the effort he puts on this project.

I'm finding that esbuild shallows typescript errors. Walked through the documentation and couldn't see anything related. Log level param won't make any effect on this.

node version: 14.17.5
npm version: 7.24.0
esbuild version: 0.13.1

Example script:
esbuild src/index.ts --bundle --outfile=public/index.js

Example code:

  const test: number = 'An extremely fast JavaScript bundler'
  console.log(test)

Maybe am I missing out something? Is this a known Issue? Didn't find anything related on the Issues either.
Thanks!

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