old_contents: export default function(result, options) {
      const styles = result.styles.map(stylesPath => {
          return `require('${stylesPath}')`;
      }).join('; ');
      const createFactory = `require('react').createFactory`;
      const inject = `module.__yummies__ = module.__yummies__ || {}; module.__yummies__['${result.component}'] = '${result.raw}'`;
  
      if (options.injectable) {
          if (result.opts.inject === true) {
              if (result.opts.class === true) {
                  return `/* ${result.raw} */ function(injects) { return require('@yummies/layers-loader/build/inject!${result.component}')(injects); }; ${styles}`;
              }
  
              return `/* ${result.raw} */ function(injects) { return ${createFactory}(require('@yummies/layers-loader/build/inject!${result.component}')(injects)); }; ${styles}`;
          }
  
          if (result.opts.class === true) {
              return `/* ${result.raw} */ (function() {
                  ${inject};
  
                  var out = require('${result.component}');
  
                  ${styles};
  
                  return out;
              })()`;
          }
  
          return `/* ${result.raw} */ (function() {
              ${inject};
  
              var out = ${createFactory}(
                  require('${result.component}')
              );
  
              ${styles};
  
              return out;
          })()`;
      }
  
      if (result.opts.class === true) {
          return `/* ${result.raw} */ require('${result.component}'); ${styles}`;
      }
  
      return `/* ${result.raw} */ ${createFactory}(require('${result.component}')); ${styles}`;
  }
  
new_contents: export default function(result, options) {
      const styles = result.styles.map(stylesPath => {
          return `require('${stylesPath}')`;
      }).join('; ');
      const createFactory = `require('react').createFactory`;
      const inject = `module.__yummies__ = module.__yummies__ || {}; module.__yummies__['${result.component}'] = '${result.raw}'`;
      const requireEs6 = (path) => `function(obj){ return obj && obj.__esModule ? obj : { \'default\': obj }; }(require('${path}')).default`;
  
      if (options.injectable) {
          if (result.opts.inject === true) {
              if (result.opts.class === true) {
                  return `/* ${result.raw} */ function(injects) { return require('@yummies/layers-loader/build/inject!${result.component}')(injects); }; ${styles}`;
              }
  
              return `/* ${result.raw} */ function(injects) { return ${createFactory}(${requireEs6(`@yummies/layers-loader/build/inject!${result.component}`)}(injects)); }; ${styles}`;
          }
  
          if (result.opts.class === true) {
              return `/* ${result.raw} */ (function() {
                  ${inject};
  
                  var out = require('${result.component}');
  
                  ${styles};
  
                  return out;
              })()`;
          }
  
          return `/* ${result.raw} */ (function() {
              ${inject};
  
              var out = ${createFactory}(${requireEs6(result.component)});
  
              ${styles};
  
              return out;
          })()`;
      }
  
      if (result.opts.class === true) {
          return `/* ${result.raw} */ require('${result.component}'); ${styles}`;
      }
  
      return `/* ${result.raw} */ ${createFactory}(${requireEs6(result.component)}); ${styles}`;
  }
  
subject: Fix for export default and webpack