mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Also includes the bump of the debug dependency. Diff: https://github.com/socketio/engine.io-client/compare/3.3.1...3.4.0
38 lines
637 B
JavaScript
38 lines
637 B
JavaScript
|
|
module.exports = {
|
|
name: 'default',
|
|
entry: './lib/index.js',
|
|
output: {
|
|
library: 'io',
|
|
libraryTarget: 'umd',
|
|
filename: 'socket.io.dev.js'
|
|
},
|
|
externals: {
|
|
global: glob()
|
|
},
|
|
node: {
|
|
Buffer: false
|
|
},
|
|
devtool: 'source-map',
|
|
module: {
|
|
loaders: [{
|
|
test: /\.js$/,
|
|
include: /debug/,
|
|
loader: 'babel-loader',
|
|
query: { presets: ['es2015'] }
|
|
}]
|
|
}
|
|
};
|
|
|
|
/**
|
|
* Populates `global`.
|
|
*
|
|
* @api private
|
|
*/
|
|
|
|
function glob () {
|
|
return 'typeof self !== "undefined" ? self : ' +
|
|
'typeof window !== "undefined" ? window : ' +
|
|
'typeof global !== "undefined" ? global : {}';
|
|
}
|