Open sanex3339 opened 7 years ago
It seems that the d.ts
extension - the cause of the error. If i replace name filename to TSourceMapMode.ts
- everything is ok. But why on other files no error? File with types should has d.ts
extension.
Same problem as here: https://github.com/s-panferov/awesome-typescript-loader/issues/225
I getting the error only with
awesome-typescript-loader
and only in one file:With
ts-loader
and raw typescript everything is ok.Typescript@2.0.3
Import https://github.com/sanex3339/javascript-obfuscator/blob/dev/src/options/Options.ts:
File
TSourceMapMode.d.ts
https://github.com/sanex3339/javascript-obfuscator/blob/dev/src/types/TSourceMapMode.d.ts:In other files everything is OK: https://github.com/sanex3339/javascript-obfuscator/blob/dev/src/interfaces/IOptions.d.ts