module.exports = {
  test: /\.es6\.js$|\.js$|\.jsx$/,
  exclude: /node_modules/,
  loader: 'babel',
  query: {
    presets: [
      'es2015-native-modules',
      'stage-2',
      'react',
    ],
    plugins: [
      'transform-class-properties',
      'transform-react-constant-elements',
      'transform-react-inline-elements',
      'lodash', // fixes the babel budnling issue
    ],
  }
};

module.exports = {
  test: /\.es6\.js$|\.js$|\.jsx$/,
  exclude: /node_modules/,
  loader: 'babel',
  query: {
    presets: [
      'es2015-native-modules',
      'stage-2',
      'react',
    ].map(function(p) { return require.resolve('babel-preset-' + p) }),
    plugins: [
      'transform-class-properties',
      'transform-react-constant-elements',
      'transform-react-inline-elements',
      'lodash', // fixes the babel budnling issue
    ].map(function(p) { return require.resolve('babel-plugin-' + p) }),
  }
};

--- 
+++ 
@@ -7,12 +7,12 @@
       'es2015-native-modules',
       'stage-2',
       'react',
-    ].map(function(p) { return require.resolve('babel-preset-' + p) }),
+    ],
     plugins: [
       'transform-class-properties',
       'transform-react-constant-elements',
       'transform-react-inline-elements',
       'lodash', // fixes the babel budnling issue
-    ].map(function(p) { return require.resolve('babel-plugin-' + p) }),
+    ],
   }
 };
Revert "Fix module resolution for npm-link'd packages"

This reverts commit 598cc27b2fe800e5b0a6599a905b546a4bfc4d42.
