"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = _default;

function _react() {
  const data = _interopRequireDefault(require("react"));

  _react = function _react() {
    return data;
  };

  return data;
}

function _umiUtils() {
  const data = require("umi-utils");

  _umiUtils = function _umiUtils() {
    return data;
  };

  return data;
}

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _default(imports) {
  return imports.map(imp => {
    const source = imp.source,
          specifier = imp.specifier;

    if (specifier) {
      return `import ${specifier} from '${(0, _umiUtils().winPath)(source)}';`;
    } else {
      return `import '${(0, _umiUtils().winPath)(source)}';`;
    }
  });
}