question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stop leaking pathnames in generated files

See original GitHub issue

After ng build, some of the generated files contain folder names from my computer. Something like this:

module.exports = __webpack_require__(/*! /home/my/username/my/projects/something/src/main.ts */"./src/main.ts");

I’ve noticed this in the following files:

  • styles.js
  • polyfill.js
  • main.js

For developers that wish to remain anonymous, this can be an important issue. Is there some flag to prevent this? Also it would be nice to either have this off by default, or have a hint in the generated comment about how to turn it off.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
alan-agius4commented, Jul 27, 2020

Hi @h908714124, we only expose essential functionality of the bundler, in this case Webpack. This gives us more flexibility and have the possibility of changing the bundler without breaking the API.

0reactions
angular-automatic-lock-bot[bot]commented, Aug 27, 2020

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Testing in Go: Stop Leaking Files - Ilija Eftimov ‍
Starting from Go v1.15, there will be a nice way to do this: TB.TempDir() . To clean up the test files, we can...
Read more >
CWE-22: Improper Limitation of a Pathname to a Restricted ...
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a...
Read more >
There is a memory leak when sharing file URL using ...
So how can I share a file URL with no memory leak? NSURL *path = [NSURL URLWithString:@"https://stackoverflow.com/"]; UIActivityViewController * ...
Read more >
Improper Limitation of a Pathname to a Restricted Directory ...
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a...
Read more >
Valgrind Suppression File Howto - WxWiki - wxWidgets
It's very good at finding leaks and uninitialised variables; unfortunately it's too good, and usually produces a number of false positives.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found