Skip to content

Commit

Permalink
Angular: Emit decorator metadata by default (#9701)
Browse files Browse the repository at this point in the history
Angular: Emit decorator metadata by default
  • Loading branch information
shilman authored Feb 3, 2020
2 parents 212e1fb + 6cba51f commit 60ae570
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/angular/src/server/__tests__/ts_config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ describe('ts_config', () => {

expect(config).toEqual({
transpileOnly: true,
compilerOptions: {
emitDecoratorMetadata: true,
},
configFile: 'tsconfig.json',
});
});
Expand All @@ -31,6 +34,9 @@ describe('ts_config', () => {

expect(config).toEqual({
transpileOnly: true,
compilerOptions: {
emitDecoratorMetadata: true,
},
});
});
});
3 changes: 3 additions & 0 deletions app/angular/src/server/ts_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export default function(configDir: string) {
const configFilePath = resolveTsConfig(path.resolve(configDir, 'tsconfig.json'));
return {
transpileOnly: true,
compilerOptions: {
emitDecoratorMetadata: true,
},
configFile: configFilePath || undefined,
};
}

0 comments on commit 60ae570

Please sign in to comment.