Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Compile server TypeScript code before browser (elastic#32578) (elasti…
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdover authored and mshustov committed Mar 7, 2019
1 parent 3422d51 commit b7ff5f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dev/build/tasks/transpile_typescript_task.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ export const TranspileTypescriptTask = {
const projects = [
typesProjectRepo.tsConfigPath,
typesProjectBuild.tsConfigPath,
// Browser needs to be compiled before server code so that any shared code
// is compiled to the lowest common denominator (server's CommonJS format)
// which can be supported by both environments.
browserProject.tsConfigPath,
defaultProject.tsConfigPath,
browserProject.tsConfigPath
];

// compile each typescript config file
Expand Down

0 comments on commit b7ff5f1

Please sign in to comment.