mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
Change the way modules are excluded from webpack
This commit is contained in:
@@ -52,6 +52,10 @@
|
|||||||
"node": ">=6.0.0"
|
"node": ">=6.0.0"
|
||||||
},
|
},
|
||||||
"browser": {
|
"browser": {
|
||||||
|
"ws": false,
|
||||||
|
"opusscript": false,
|
||||||
|
"node-opus": false,
|
||||||
|
"tweet-nacl": false,
|
||||||
"src/sharding/Shard.js": false,
|
"src/sharding/Shard.js": false,
|
||||||
"src/sharding/ShardClientUtil.js": false,
|
"src/sharding/ShardClientUtil.js": false,
|
||||||
"src/sharding/ShardingManager.js": false,
|
"src/sharding/ShardingManager.js": false,
|
||||||
|
|||||||
@@ -28,12 +28,6 @@ const createConfig = (options) => {
|
|||||||
{ test: /\.md$/, loader: 'ignore-loader' },
|
{ test: /\.md$/, loader: 'ignore-loader' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
externals: {
|
|
||||||
ws: { commonjs: 'ws' },
|
|
||||||
opusscript: { commonjs: 'opusscript' },
|
|
||||||
'node-opus': { commonjs: 'node-opus' },
|
|
||||||
'tweet-nacl': { commonjs: 'tweet-nacl' },
|
|
||||||
},
|
|
||||||
node: {
|
node: {
|
||||||
fs: 'empty',
|
fs: 'empty',
|
||||||
dns: 'mock',
|
dns: 'mock',
|
||||||
|
|||||||
Reference in New Issue
Block a user