Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/schematics/angular/application/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ function addAppToWorkspaceFile(options: ApplicationOptions, workspace: Workspace
join(normalize(projectRoot), 'src', 'favicon.ico'),
join(normalize(projectRoot), 'src', 'assets'),
],
sourceMap: true,
},
},
lint: {
Expand Down
1 change: 1 addition & 0 deletions packages/schematics/angular/library/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ function addAppToWorkspaceFile(options: LibraryOptions, workspace: WorkspaceSche
main: `${projectRoot}/src/test.ts`,
tsConfig: `${projectRoot}/tsconfig.spec.json`,
karmaConfig: `${projectRoot}/karma.conf.js`,
sourceMap: true,
},
},
lint: {
Expand Down
1 change: 1 addition & 0 deletions packages/schematics/angular/migrations/update-6/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ function extractProjectsConfig(
testOptions.scripts = (app.scripts || []).map(_extraEntryMapper);
testOptions.styles = (app.styles || []).map(_extraEntryMapper);
testOptions.assets = (app.assets || []).map(_mapAssets).filter(x => !!x);
testOptions.sourceMap = true;

if (karmaConfig) {
targets.test = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,7 @@ describe('Migration to v6', () => {
{ glob: '**/*', input: 'src/assets', output: '/assets' },
{ glob: 'favicon.ico', input: 'src', output: '/' },
]);
expect(test.options.sourceMap).toEqual(true);
});

it('should set the extract i18n target', () => {
Expand Down