Skip to content

Stop leaking pathnames in generated files #18363

@h908714124

Description

@h908714124

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions