Skip to content

Commit e9102cc

Browse files
committed
Don't include CDP's protocol.json in bundles, since we don't use it
1 parent 15c962d commit e9102cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

webpack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ module.exports = {
7575
new webpack.IgnorePlugin(/^\.\/src\/(adb|logcat|monkey)$/, /adbkit/),
7676
// GraphQL playground - required but never used in production bundles
7777
new webpack.NormalModuleReplacementPlugin(/^\.\/renderGraphiQL$/, 'node-noop'),
78+
// CDP protocol - not used without local:true (which we never use, we always
79+
// get the CDP protocol details from the target Electron app).
80+
new webpack.IgnorePlugin(/^\.\/protocol.json$/, /chrome-remote-interface/),
7881
// Copy Mockttp's schema (read with readFile) into the output directory
7982
new CopyWebpackPlugin([
8083
{ from: path.join('node_modules', 'mockttp', 'dist', 'standalone', 'schema.gql') },

0 commit comments

Comments
 (0)