Change the way modules are excluded from webpack

This commit is contained in:
Schuyler Cebulskie
2016-11-20 23:19:53 -05:00
parent ee4a8bb3b6
commit 0d754d1fbb
2 changed files with 4 additions and 6 deletions

View File

@@ -52,6 +52,10 @@
"node": ">=6.0.0"
},
"browser": {
"ws": false,
"opusscript": false,
"node-opus": false,
"tweet-nacl": false,
"src/sharding/Shard.js": false,
"src/sharding/ShardClientUtil.js": false,
"src/sharding/ShardingManager.js": false,

View File

@@ -28,12 +28,6 @@ const createConfig = (options) => {
{ test: /\.md$/, loader: 'ignore-loader' },
],
},
externals: {
ws: { commonjs: 'ws' },
opusscript: { commonjs: 'opusscript' },
'node-opus': { commonjs: 'node-opus' },
'tweet-nacl': { commonjs: 'tweet-nacl' },
},
node: {
fs: 'empty',
dns: 'mock',