gulpfile.js
function addDeprecatedFunctions (done) {
  const code = String(fs.readFileSync(COMPILED_MAIN_ANY))

  const updatedCode = code + '\n\n' +
    'exports[\'var\'] = exports.deprecatedVar;\n' +
    'exports[\'typeof\'] = exports.deprecatedTypeof;\n' +
    'exports[\'eval\'] = exports.deprecatedEval;\n' +
    'exports[\'import\'] = exports.deprecatedImport;\n'

  fs.writeFileSync(COMPILED_MAIN_ANY, updatedCode)

  log('Added deprecated functions to ' + COMPILED_MAIN_ANY)

  done()
}
function addDeprecatedFunctions (done) {
  const code = String(fs.readFileSync(COMPILED_MAIN_ANY))

  const updatedCode = code + '\n\n' +
    'exports[\'var\'] = exports.deprecatedVar;\n' +
    'exports[\'typeof\'] = exports.deprecatedTypeof;\n' +
    'exports[\'eval\'] = exports.deprecatedEval;\n' +
    'exports[\'import\'] = exports.deprecatedImport;\n'

  fs.writeFileSync(COMPILED_MAIN_ANY, updatedCode)

  log('Added deprecated functions to ' + COMPILED_MAIN_ANY)

  done()
}
function addDeprecatedFunctions ( done ) { const code = String ( fs . readFileSync ( COMPILED_MAIN_ANY ) ) const updatedCode = code + '\n\n' + 'exports[\'var\'] = exports.deprecatedVar;\n' + 'exports[\'typeof\'] = exports.deprecatedTypeof;\n' + 'exports[\'eval\'] = exports.deprecatedEval;\n' + 'exports[\'import\'] = exports.deprecatedImport;\n' fs . writeFileSync ( COMPILED_MAIN_ANY , updatedCode ) log ( 'Added deprecated functions to ' + COMPILED_MAIN_ANY ) done ( ) }
Add links to deprecated functions in the node.js transpiled code mainAny.js These names are not valid in ES6 where we use them as functions instead of properties.
Add links to deprecated functions in the node . js transpiled code mainAny . js These names are not valid in ES6 where we use them as functions instead of properties .