const assert = require('assert');

module.exports = async function () {
  const options = this.getOptions();
  assert(options.hasOwnProperty('defaultExport'), "Loader requires a default export value");
  return `export default ${options.defaultExport};`
}
