Skip to content

Commit e539ff9

Browse files
authored
[engineering] remove dead references to Swc transpile (#252375)
1 parent 94956d0 commit e539ff9

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

build/gulpfile.extensions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const tasks = compilations.map(function (tsconfigFile) {
111111
overrideOptions.inlineSources = Boolean(build);
112112
overrideOptions.base = path.dirname(absolutePath);
113113

114-
const compilation = tsb.create(absolutePath, overrideOptions, { verbose: false, transpileOnly, transpileOnlyIncludesDts: transpileOnly, transpileWithSwc: true }, err => reporter(err.toString()));
114+
const compilation = tsb.create(absolutePath, overrideOptions, { verbose: false, transpileOnly, transpileOnlyIncludesDts: transpileOnly, transpileWithEsbuild: true }, err => reporter(err.toString()));
115115

116116
const pipeline = function () {
117117
const input = es.through();

build/lib/compilation.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/lib/compilation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function createCompile(src: string, { build, emitError, transpileOnly, pr
6262
const compilation = tsb.create(projectPath, overrideOptions, {
6363
verbose: false,
6464
transpileOnly: Boolean(transpileOnly),
65-
transpileWithSwc: typeof transpileOnly !== 'boolean' && transpileOnly.esbuild
65+
transpileWithEsbuild: typeof transpileOnly !== 'boolean' && transpileOnly.esbuild
6666
}, err => reporter(err));
6767

6868
function pipeline(token?: util.ICancellationToken) {

build/lib/tsb/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/lib/tsb/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const _defaultOnError = (err: string) => console.log(JSON.stringify(err, null, 4
3636
export function create(
3737
projectPath: string,
3838
existingOptions: Partial<ts.CompilerOptions>,
39-
config: { verbose?: boolean; transpileOnly?: boolean; transpileOnlyIncludesDts?: boolean; transpileWithSwc?: boolean },
39+
config: { verbose?: boolean; transpileOnly?: boolean; transpileOnlyIncludesDts?: boolean; transpileWithEsbuild?: boolean },
4040
onError: (message: string) => void = _defaultOnError
4141
): IncrementalCompiler {
4242

@@ -128,7 +128,7 @@ export function create(
128128

129129
let result: IncrementalCompiler;
130130
if (config.transpileOnly) {
131-
const transpiler = !config.transpileWithSwc
131+
const transpiler = !config.transpileWithEsbuild
132132
? new TscTranspiler(logFn, printDiagnostic, projectPath, cmdLine)
133133
: new ESBuildTranspiler(logFn, printDiagnostic, projectPath, cmdLine);
134134
result = <any>(() => createTranspileStream(transpiler));

0 commit comments

Comments
 (0)