code: public static boolean isCommonJsImport(
        Node requireCall, ModuleLoader.ResolutionMode resolutionMode) {
      if (requireCall.isCall() && requireCall.hasTwoChildren()) {
        if (resolutionMode == ModuleLoader.ResolutionMode.WEBPACK
            && (requireCall.getFirstChild().matchesQualifiedName(WEBPACK_REQUIRE)
                || requireCall.getFirstChild().matchesQualifiedName(WEBPACK_REQUIRE_NAMESPACE))
            && (requireCall.getSecondChild().isNumber() || requireCall.getSecondChild().isString())) {
          return true;
        } else if (requireCall.getFirstChild().matchesQualifiedName(REQUIRE)
            && requireCall.getSecondChild().isString()) {
          return true;
        }
      } else if (requireCall.isCall()
          && requireCall.getChildCount() == 3
          && resolutionMode == ModuleLoader.ResolutionMode.WEBPACK
          && requireCall.getFirstChild().matchesQualifiedName(WEBPACK_REQUIRE + ".bind")
          && requireCall.getSecondChild().isNull()
          && (requireCall.getLastChild().isNumber() || requireCall.getLastChild().isString())) {
        return true;
      }
      return false;
    }
docs: Recognize if a node is a module import. We recognize two forms:
  
  <ul>
  <li>require("something");
  <li>__webpack_require__(4); // only when the module resolution is WEBPACK
  <li>__webpack_require__.t(4); // only when the module resolution is WEBPACK
  </ul>