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:
Jesse Rosenberger
2021-03-03 09:15:58 +00:00
parent c979d3c652
commit dbe2bca423

View File

@@ -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