Skip to content

Commit 3e4382e

Browse files
committed
Set broccoli-typescript-compiler tsconfig options.
1 parent 06a21ab commit 3e4382e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/typescript-preprocessor.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ class TypeScriptPreprocessor {
2424
annotation: 'TS files',
2525
});
2626

27-
const ts = tsc(tsFiles);
27+
const ts = tsc(tsFiles, {
28+
annotation: 'Compiled TS files',
29+
compilerOptions: {
30+
allowJs: false, // don't compile JS here; let Babel manage that
31+
noEmit: false, // we *must* emit for Broccoli to do its thing
32+
},
33+
});
2834

2935
// Put everything together.
3036
return new MergeTrees([js, ts], {

0 commit comments

Comments
 (0)