function validateRemovedVar()

in script/build.ts [175:186]


function validateRemovedVar(variable: string, collection: ModeCollection, inputFile: string) {
  const errors = []

  // Assert that removed variable doesn't exist
  if (existsInCollection(collection, variable)) {
    errors.push(
      chalk`Variable {bold.red "${variable}"} is marked as removed in {bold ${inputFile}} but is still defined`
    )
  }

  return errors
}