Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Set expected default values for compiler #1183 #1202

Merged
merged 1 commit into from
Aug 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/cli/src/models/compiler/Compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ export async function compile(
if (!force && state.alreadyCompiled) return;

// Merge config file compiler options with those set explicitly
const resolvedOptions: ProjectCompilerOptions = {};
const resolvedOptions: ProjectCompilerOptions = {
optimizer: {
enabled: false,
runs: 200,
},
};
merge(resolvedOptions, projectFile.compilerOptions, compilerOptions);

// Validate compiler manager setting
Expand Down