webpack package the ts file used the exist sourcemap

38 Views Asked by At

I have a program like this: First , I have a list of typescript files.Then I have a compiler compile the ts file to *.obf.ts(this is a special typescript file) and generate the sourcemap.

After this, Webpack will take the after compile steps (ts-loader, babel-loader). But the sourcemap just convert the file to the *.obf.ts file ,not the original ts file.

I already used the source-map-loader plugin, but the ts-loader seems don't accept the input sourcemap.

So how can I convert back to the original ts file?

0

There are 0 best solutions below