function validateDeprecatedVar()

in script/build.ts [160:169]


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

  // Assert that deprecated variable exists
  if (!existsInCollection(collection, variable)) {
    errors.push(chalk`Cannot deprecate undefined variable {bold.red "${variable}"} in {bold ${inputFile}}`)
  }

  return errors
}