mirror of
https://github.com/zhigang1992/workers-graphql-server.git
synced 2026-01-12 22:53:37 +08:00
Add comment as to why 'fs' builtin module is depended on.
Hopefully making it easier to understand why this was here and when it can be removed!
This commit is contained in:
@@ -4,6 +4,10 @@ module.exports = {
|
||||
target: 'webworker',
|
||||
resolve: {
|
||||
alias: {
|
||||
// While Apollo Server doesn't use the 'fs' Node.js builtin itself,
|
||||
// its dependency - graphql-upload - does leverage it.
|
||||
// An intention is for Apollo Server 3.x to no longer directly rely on
|
||||
// graphql-upload, so this may be re-visited when that release occurs.
|
||||
fs: path.resolve(__dirname, './null.js'),
|
||||
|
||||
// The 'net' and 'tls' Node.js built-in usage within Apollo Server
|
||||
|
||||
Reference in New Issue
Block a user