How to ignore test files in webpack with ts-loader

后端 未结 3 747
执念已碎
执念已碎 2021-02-13 19:46

I have a project that runs the test files named \"*.test.ts\" with jest and ts-jest. This is fine but when I launch webpack, I get errors for the test files:

ERR         


        
3条回答
  •  臣服心动
    2021-02-13 20:05

    Found it. My version of 'ts-loader' was behind and somehow did not manage to properly handle installed @types.

    Rule of thumb: pack, build, transpile issues: upgrade dev dependencies.

提交回复
热议问题