Skip to content

Commit

Permalink
fix: ts-node register twice
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Aug 6, 2018
1 parent 4944ff1 commit b405159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/midway/cluster/utils.js
Expand Up @@ -6,7 +6,7 @@
*/
exports.isNeedCompile = options => {
let need = options.typescript && options.isTsEnv;
if (need) {
if (need && !exports.isTypeScriptEnvironment()) {
try {
require('ts-node/register');
} catch (e) {
Expand Down

0 comments on commit b405159

Please sign in to comment.