Built motion from commit 76eb00b9e.|1.0.24
[motion.git] / public / bower_components / socket.io-client / support / webpack.config.js
1
2 module.exports = {
3   name: 'default',
4   entry: './lib/index.js',
5   output: {
6     library: 'io',
7     libraryTarget: 'umd',
8     filename: 'socket.io.js'
9   },
10   externals: {
11     global: glob()
12   },
13   devtool: 'cheap-module-source-map',
14   module: {
15     loaders: [{
16       test: /\.js$/,
17       exclude: /(node_modules|bower_components)/,
18       loader: 'babel', // 'babel-loader' is also a legal name to reference
19       query: { presets: ['es2015'] }
20     }, {
21       test: /\json3.js/,
22       loader: 'imports?define=>false'
23     }]
24   }
25 };
26
27 /**
28  * Populates `global`.
29  *
30  * @api private
31  */
32
33 function glob () {
34   return 'typeof self !== "undefined" ? self : ' +
35     'typeof window !== "undefined" ? window : ' +
36     'typeof global !== "undefined" ? global : {}';
37 }