Skip to content

Commit df066e2

Browse files
committed
Don't include large & unused GraphQL playground in bundles
1 parent bc03856 commit df066e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ module.exports = {
7373
new webpack.IgnorePlugin(/^child-killer$/),
7474
// Dev-only require format, used in various adbkit modules
7575
new webpack.IgnorePlugin(/^\.\/src\/(adb|logcat|monkey)$/, /adbkit/),
76+
// GraphQL playground - required but never used in production bundles
77+
new webpack.NormalModuleReplacementPlugin(/^\.\/renderGraphiQL$/, 'node-noop'),
7678
// Copy Mockttp's schema (read with readFile) into the output directory
7779
new CopyWebpackPlugin([
7880
{ from: path.join('node_modules', 'mockttp', 'dist', 'standalone', 'schema.gql') },

0 commit comments

Comments
 (0)