instapack
Version:
All-in-one TypeScript and Sass compiler for web applications!
28 lines (27 loc) • 941 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.uniteBuildVariables = void 0;
function uniteBuildVariables(commandLineFlags, projectSettings, userSettings, dotEnv, typescriptConfiguration) {
const a = Object.assign({
typescriptConfiguration: typescriptConfiguration,
vue: undefined
}, userSettings);
const b = Object.assign(a, projectSettings);
const variables = Object.assign(b, commandLineFlags);
variables.env = Object.assign(dotEnv, commandLineFlags.env);
if (variables.reactRefresh) {
variables.serve = true;
}
if (variables.serve) {
variables.production = false;
variables.watch = true;
}
if (variables.watch) {
variables.stats = false;
}
if (!variables.watch) {
variables.mute = true;
}
return variables;
}
exports.uniteBuildVariables = uniteBuildVariables;