Not sure what’s up yet but putting this up so I don’t forget to check it later.
In the past, I could put this into Webpack config:

``` js
    resolve: {
        alias: {
            react: 'react/dist/react',
            'react-dom': 'react-dom/dist/react-dom',
        },
      }
```

Many people do that to improve build times.

This works with 0.14.x and 15.3.0 but not in master.
Most likely related to recent @sebmarkbage changes.

It fails like this:

<img width="760" alt="screen shot 2016-08-12 at 14 55 55" src="https://cloud.githubusercontent.com/assets/810438/17624533/e8b7c366-609c-11e6-8fe6-9adb951f12a8.png">

Seems like it claims to be a UMD shim but assumes global environment (whereas a true UMD shim would detect environment and fallback to `require` when available).

cc @zpao 

'use strict';
var envify = require('loose-envify/custom');
var grunt = require('grunt');
var UglifyJS = require('uglify-js');
var uglifyify = require('uglifyify');
var derequire = require('derequire');
var aliasify = require('aliasify');
var collapser = require('bundle-collapser/plugin');
var envifyDev = envify({NODE_ENV: process.env.NODE_ENV || 'development'});
var envifyProd = envify({NODE_ENV: process.env.NODE_ENV || 'production'});
var shimSharedModules = aliasify.configure({
  'aliases': {
    'react/lib/React': 'react/lib/ReactUMDShim',
    'react/lib/ReactCurrentOwner': 'react/lib/ReactCurrentOwnerUMDShim',
    'react/lib/ReactComponentTreeHook': 'react/lib/ReactComponentTreeHookUMDShim',
  },
});
var shimDOMModules = aliasify.configure({
  'aliases': {
    './ReactAddonsDOMDependencies': {relative: './ReactAddonsDOMDependenciesUMDShim'},
  },
});
var SIMPLE_TEMPLATE =
  grunt.file.read('./grunt/data/header-template-short.txt');
var LICENSE_TEMPLATE =
  grunt.file.read('./grunt/data/header-template-extended.txt');
function minify(src) {