angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

comments and absolute file paths in AoT ouput

Open m4mbart opened this issue 9 years ago • 4 comments

HI,

The --aot output (main.***.bundje.js) is full of comments with instructions like these:

  • @return {Observable} An Observable of the first item that matches the\n * condition.\n * /** A element that can be safely used to parse untrusted HTML. Lazily initialized below. *

And license agreements from Google. Not sure if that is required? If so it might also be fetched async later?

The file is also full of references to absolute paths on my development machine or buildserver:

"/Users//Projects//frontend/src/app/app.route.ts" "sourceURL=webpack:////Users//Projects//frontend/src/app/ui-components/fnc-file-drop/fnc-file-drop.component.scss.shim.ts"

OS?

Mac OSX sierra

Versions.

angular-cli: 1.0.0-beta.21 node: 6.9.2 os: darwin x64

Repro steps.

ng build --prod --aot --env=*** --sm false

m4mbart avatar Dec 12 '16 12:12 m4mbart

The comments bit is being tracked in https://github.com/angular/angular-cli/issues/2386

The absolute paths are unintended. Will look into it.

filipesilva avatar Dec 12 '16 13:12 filipesilva

Possibly related to #3506 ?

baruchvlz avatar Dec 12 '16 14:12 baruchvlz

I just checked and this doesn't seem to happen anymore.

filipesilva avatar May 22 '17 09:05 filipesilva

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.