tooling/babel-plugin-inject-package-version.js
function versionFromState(state) {
  // eslint-disable-next-line global-require
  return require(pkgUp.sync(state.file.opts.filename)).version;
}
function versionFromState(state) {
  // eslint-disable-next-line global-require
  return require(pkgUp.sync(state.file.opts.filename)).version;
}
function versionFromState ( state ) { // eslint-disable-next-line global-require return require ( pkgUp . sync ( state . file . opts . filename ) ) . version ; }
Uses pkgUp to find the appropriate package.json for the specified babel state
object
@param {Object} state
@private
@returns {string}
Uses pkgUp to find the appropriate package . json for the specified babel state object