diff --git a/build/lib/compilation.js b/build/lib/compilation.js index 6fecf3f9ae5..71181f8aa07 100644 --- a/build/lib/compilation.js +++ b/build/lib/compilation.js @@ -37,6 +37,9 @@ function createCompile(src, build, emitError) { const sourcemaps = require('gulp-sourcemaps'); const projectPath = path.join(__dirname, '../../', src, 'tsconfig.json'); const overrideOptions = Object.assign(Object.assign({}, getTypeScriptCompilerOptions(src)), { inlineSources: Boolean(build) }); + if (!build) { + overrideOptions.inlineSourceMap = true; + } const compilation = tsb.create(projectPath, overrideOptions, false, err => reporter(err)); function pipeline(token) { const bom = require('gulp-bom'); diff --git a/build/lib/compilation.ts b/build/lib/compilation.ts index 62fbea67b24..3db8cf0f917 100644 --- a/build/lib/compilation.ts +++ b/build/lib/compilation.ts @@ -44,6 +44,9 @@ function createCompile(src: string, build: boolean, emitError?: boolean) { const projectPath = path.join(__dirname, '../../', src, 'tsconfig.json'); const overrideOptions = { ...getTypeScriptCompilerOptions(src), inlineSources: Boolean(build) }; + if (!build) { + overrideOptions.inlineSourceMap = true; + } const compilation = tsb.create(projectPath, overrideOptions, false, err => reporter(err));