code: function registerBabel(app, config) {
    // Extract module aliases (e.g. '@button': '/path/to/button.jsx')
    var aliases = {};
    app.components.items().forEach(function(item) {
      aliases['@' + item.handle] = item.viewPath;
    });
  
    // Add resolver plugin aliases to babel config
    // https://github.com/tleunen/babel-plugin-module-resolver
    _.assign(config, {
      plugins: [
        ["module-resolver", {
          "alias": aliases
        }]
      ]
    });
  
    // Hook up that babel
    babelReg(config);
  }
docs: /*
  Register Babel
  --------------
  This hooks into import/require statements and tells Babel
  to compile according to user-configurable options.
  
  Call this whenever components have been parsed so we can
  register all Fractal handles as import module aliases.
  
  Makes these possible:
  
  import Button from '@button';
  const Button = require('@button');