Skip to content

Add typescript files into webpack fileDependencies in transpileOnly mode? #783

@MQuy

Description

@MQuy

I am not sure this is the right place to ask this question. I will demonstrate with the example below

# demo.ts
export interface Demo {
  [key: string]: string
}
....
# index.ts
import { Demo } from './demo'

const demo: Demo = { "hello": "ts-loader" };

in my ts-loader config, if I don't enable transpileOnly, demo.ts file will be included in webpack fileDependencies (I assume it is from this part https://github.com/TypeStrong/ts-loader/blob/master/src/index.ts#L302), but if I enable transpileOnly, demo.ts won't be include in my webpack fileDependencies

I wonder is there an way that I can enable transpileOnly and demo.ts is still in webpack fileDependencies?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions