INNER CODE UNIT · JavaScript

parent

standard-things/esm · .babel.config.js:29

    const parent = path.find((path) => {
      if (path.isClass()) {
        return true
      }

      const isFunc = path.isFunction()

      if (! isFunc &&
          ! path.isProgram()) {
        return false
      }

      const node = isFunc
        ? path.node.body
        : path.node

      const { directives } = node

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…