mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
Change the way modules are excluded from webpack
This commit is contained in:
parent
ee4a8bb3b6
commit
0d754d1fbb
2 changed files with 4 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue