You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm going to be honest, I don't fully comprehend how ts-loader interacts with the typescript compiler (API?) so I'm not sure when/where in the chain this has to be corrected. But when enabling declarationMap: true in tsconfig and building with Webpack/ts-loader I don't get any map files.
When running the typescript compiler, tsc, I get those files.
I'm not sure if ts-loader isn't submitting the files or if I have to collect them somehow in my Webpack config. Maybe someone can enlighten me?
Expected Behaviour
When setting declarationMap: true in tsconfig I expect the d.ts.map file to be in my dist folder
Actual Behaviour
Only the d.ts files are ends up in the dist folder
Steps to Reproduce the Problem
Use latest webpack and ts-loader and enable declaration and declarationMap
Location of a Minimal Repository that Demonstrates the Issue.
Should be reproduces with any Webpack 4/[email protected] starter repo.
The text was updated successfully, but these errors were encountered:
@johnnyreilly Yeah! I get the maps when I run "tsc", I just don't get them when I run webpack/ts-loader.
The loader for instance adds my declaration files to the dist folder, but not the maps for them. But since this is a new feature since a couple of weeks I guess that's fair.
Edit: I guess this function would be responsible for it: function provideDeclarationFilesToWebpack
I'm going to be honest, I don't fully comprehend how ts-loader interacts with the typescript compiler (API?) so I'm not sure when/where in the chain this has to be corrected. But when enabling declarationMap: true in tsconfig and building with Webpack/ts-loader I don't get any map files.
When running the typescript compiler, tsc, I get those files.
I'm not sure if ts-loader isn't submitting the files or if I have to collect them somehow in my Webpack config. Maybe someone can enlighten me?
Expected Behaviour
When setting declarationMap: true in tsconfig I expect the d.ts.map file to be in my dist folder
Actual Behaviour
Only the d.ts files are ends up in the dist folder
Steps to Reproduce the Problem
Use latest webpack and ts-loader and enable declaration and declarationMap
Location of a Minimal Repository that Demonstrates the Issue.
Should be reproduces with any Webpack 4/[email protected] starter repo.
The text was updated successfully, but these errors were encountered: