mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Cleaning up
- Remove unnecessary '' in webpack config - Remove unnecessary function from zuul.config.js - Remove duplicate webpack dependency
This commit is contained in:
@@ -32,7 +32,6 @@
|
||||
"parsejson": "0.0.1",
|
||||
"parseqs": "0.0.2",
|
||||
"parseuri": "0.0.4",
|
||||
"webpack": "1.12.11",
|
||||
"ws": "1.0.1",
|
||||
"xmlhttprequest-ssl": "1.5.1",
|
||||
"yeast": "0.1.2"
|
||||
|
||||
@@ -7,7 +7,7 @@ module.exports = {
|
||||
libraryTarget: "umd"
|
||||
},
|
||||
externals: {
|
||||
'global': glob()
|
||||
global: glob()
|
||||
},
|
||||
module: {
|
||||
loaders: [{
|
||||
|
||||
@@ -10,15 +10,3 @@ module.exports = {
|
||||
builder: 'zuul-builder-webpack',
|
||||
webpack: require('./support/webpack.config.js')
|
||||
};
|
||||
|
||||
/**
|
||||
* Populates `global`.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
function glob(){
|
||||
return 'typeof self !== "undefined" ? self : '
|
||||
+ 'typeof window !== "undefined" ? window : '
|
||||
+ 'typeof global !== "undefined" ? global : {}';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user