Skip to content

Sourcemap with prod build and differential loading does not work with update to 8.3.0 #15460

@james-criscuolo

Description

@james-criscuolo

🐞 Bug report

Command (mark with an x)

- [ ] new
- [ X ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?

Yes, the previous version in which this bug was not present was: 8.2.2 (specifically @angular-devkit/build-angular 0.802.2)

Description

The sourcemap comment is missing from main-es2015..js when doing a production build with sourceMaps turned on. main-es5..js

🔬 Minimal Reproduction

🔥 Exception or Error




ng new myApp
//I dont think these options matter, but i turned on angular routing and chose scss
cd myApp
emacs angular.json
// only instance of "sourceMap" in the file must change from false to true
ng build myApp -c production
emacs dist/myApp/main-es2015.hash.js
// bottom of file has no sourcemap indicator
emacs dist/myApp/main-es5.hash.js
// bottom of file has the sourcemap indicator

🌍 Your Environment



 ~/newAngularApp   master ●  ng version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 8.3.0
Node: 10.16.0
OS: darwin x64
Angular: 8.2.3
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.803.0
@angular-devkit/build-angular     0.803.0
@angular-devkit/build-optimizer   0.803.0
@angular-devkit/build-webpack     0.803.0
@angular-devkit/core              8.3.0
@angular-devkit/schematics        8.3.0
@angular/cli                      8.3.0
@ngtools/webpack                  8.3.0
@schematics/angular               8.3.0
@schematics/update                0.803.0
rxjs                              6.4.0
typescript                        3.5.3
webpack                           4.39.2

Anything else relevant?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions