TypeStrong / TypeStrong/ts-loader
Unable to strip comments from sourcemaps
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.5k
- Forks
- 439
- Avg merge
- 17h 17m
- Merged PRs (30d)
- 2
Description
I would like to export sourcemaps but strip out all comments.
I have the following in my tsconfig (this is loaded via ts-loader)
"removeComments": true,
"sourceMap": true,
My webconfig
devtool: ''source-map"
However all my comments are there, plain for all to see.
The sourcemaps export fine.
How do I remove the comments from these sourcemaps?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported ts-loader configuration with TypeScript's removeComments and sourceMap options, together with webpack's source-map devtool setting. Determine whether the generated sourcemaps still contain comments; done when the behavior is fixed or the supported configuration is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, webpack
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100