Skip to content

TypeScript processor reads and parses tsconfig for each processed file; target is not respected #383

@cbxp

Description

@cbxp

Describe the bug
For performance reasons, tsconfig should be read only once per project. This can be verified in the debugger.
Also, target from tsconfig should be respected. Currently it is hardcoded to 'es6' no matter what tsconfig specifies.

Information about your project:

  • svelte-preprocess version 4.7.3
  • Whether your project uses Webpack or Rollup: Snowpack

Workaround for setting target in config:

preprocess({typescript: {compilerOptions: {target: 'esnext'}}})

However, something still re-processes it again, at least when using Snowpack. Will investigate more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions