From d8f46abd77eec6a417471b4761e0e4770c409df6 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Wed, 25 Oct 2023 17:11:25 +0200 Subject: [PATCH] Appease the linter --- webpack.config.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 563d14d90a..982fc04aa6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -86,9 +86,9 @@ function parseOverridesToReplacements(overrides) { // Starting with Webpack 5 we also need to set the context as otherwise replacing // files in e.g. matrix-react-sdk with files from element-web will try to resolve // them within matrix-react-sdk (https://github.com/webpack/webpack/issues/17716) - resource.context = path.dirname(resource.request) + resource.context = path.dirname(resource.request); resource.createData.context = path.dirname(resource.createData.resource); - } + }, ); }); } @@ -243,18 +243,18 @@ module.exports = (env, argv) => { }, fallback: { // Mock out the NodeFS module: The opus decoder imports this wrongly. - fs: false, - net: false, - tls: false, - crypto: false, + "fs": false, + "net": false, + "tls": false, + "crypto": false, // Polyfill needed by counterpart - util: require.resolve("util/"), + "util": require.resolve("util/"), // Polyfill needed by matrix-js-sdk/src/crypto - buffer: require.resolve("buffer/"), + "buffer": require.resolve("buffer/"), // Polyfill needed by sentry - "process/browser": require.resolve("process/browser") - } + "process/browser": require.resolve("process/browser"), + }, }, module: { @@ -728,8 +728,8 @@ module.exports = (env, argv) => { // Automatically load buffer & process modules as we use them without explicitly // importing them. new webpack.ProvidePlugin({ - Buffer: ['buffer', 'Buffer'], - process: 'process/browser', + Buffer: ["buffer", "Buffer"], + process: "process/browser", }), ].filter(Boolean),