mirror of https://github.com/microsoft/vscode.git
[engineering] remove dead references to Swc transpile (#252375)
This commit is contained in:
parent
94956d0b0b
commit
e539ff9ae1
|
@ -111,7 +111,7 @@ const tasks = compilations.map(function (tsconfigFile) {
|
|||
overrideOptions.inlineSources = Boolean(build);
|
||||
overrideOptions.base = path.dirname(absolutePath);
|
||||
|
||||
const compilation = tsb.create(absolutePath, overrideOptions, { verbose: false, transpileOnly, transpileOnlyIncludesDts: transpileOnly, transpileWithSwc: true }, err => reporter(err.toString()));
|
||||
const compilation = tsb.create(absolutePath, overrideOptions, { verbose: false, transpileOnly, transpileOnlyIncludesDts: transpileOnly, transpileWithEsbuild: true }, err => reporter(err.toString()));
|
||||
|
||||
const pipeline = function () {
|
||||
const input = es.through();
|
||||
|
|
|
@ -88,7 +88,7 @@ function createCompile(src, { build, emitError, transpileOnly, preserveEnglish }
|
|||
const compilation = tsb.create(projectPath, overrideOptions, {
|
||||
verbose: false,
|
||||
transpileOnly: Boolean(transpileOnly),
|
||||
transpileWithSwc: typeof transpileOnly !== 'boolean' && transpileOnly.esbuild
|
||||
transpileWithEsbuild: typeof transpileOnly !== 'boolean' && transpileOnly.esbuild
|
||||
}, err => reporter(err));
|
||||
function pipeline(token) {
|
||||
const bom = require('gulp-bom');
|
||||
|
|
|
@ -62,7 +62,7 @@ export function createCompile(src: string, { build, emitError, transpileOnly, pr
|
|||
const compilation = tsb.create(projectPath, overrideOptions, {
|
||||
verbose: false,
|
||||
transpileOnly: Boolean(transpileOnly),
|
||||
transpileWithSwc: typeof transpileOnly !== 'boolean' && transpileOnly.esbuild
|
||||
transpileWithEsbuild: typeof transpileOnly !== 'boolean' && transpileOnly.esbuild
|
||||
}, err => reporter(err));
|
||||
|
||||
function pipeline(token?: util.ICancellationToken) {
|
||||
|
|
|
@ -131,7 +131,7 @@ function create(projectPath, existingOptions, config, onError = _defaultOnError)
|
|||
}
|
||||
let result;
|
||||
if (config.transpileOnly) {
|
||||
const transpiler = !config.transpileWithSwc
|
||||
const transpiler = !config.transpileWithEsbuild
|
||||
? new transpiler_1.TscTranspiler(logFn, printDiagnostic, projectPath, cmdLine)
|
||||
: new transpiler_1.ESBuildTranspiler(logFn, printDiagnostic, projectPath, cmdLine);
|
||||
result = (() => createTranspileStream(transpiler));
|
||||
|
|
|
@ -36,7 +36,7 @@ const _defaultOnError = (err: string) => console.log(JSON.stringify(err, null, 4
|
|||
export function create(
|
||||
projectPath: string,
|
||||
existingOptions: Partial<ts.CompilerOptions>,
|
||||
config: { verbose?: boolean; transpileOnly?: boolean; transpileOnlyIncludesDts?: boolean; transpileWithSwc?: boolean },
|
||||
config: { verbose?: boolean; transpileOnly?: boolean; transpileOnlyIncludesDts?: boolean; transpileWithEsbuild?: boolean },
|
||||
onError: (message: string) => void = _defaultOnError
|
||||
): IncrementalCompiler {
|
||||
|
||||
|
@ -128,7 +128,7 @@ export function create(
|
|||
|
||||
let result: IncrementalCompiler;
|
||||
if (config.transpileOnly) {
|
||||
const transpiler = !config.transpileWithSwc
|
||||
const transpiler = !config.transpileWithEsbuild
|
||||
? new TscTranspiler(logFn, printDiagnostic, projectPath, cmdLine)
|
||||
: new ESBuildTranspiler(logFn, printDiagnostic, projectPath, cmdLine);
|
||||
result = <any>(() => createTranspileStream(transpiler));
|
||||
|
|
Loading…
Reference in New Issue