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 committed Feb 4, 2020
1 parent 6952bbf commit 2c85dda
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
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
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 2c85dda

Please sign in to comment.