From ccd1b052ea3925522a539e6ece2cf9842ce5db32 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 20 Aug 2026 23:46:43 +0000 Subject: [PATCH] Suppress known webpack warnings Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com> --- src/microsoft-trydotnet-editor/webpack.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/microsoft-trydotnet-editor/webpack.config.js b/src/microsoft-trydotnet-editor/webpack.config.js index ecc22c527..40eba5fc7 100644 --- a/src/microsoft-trydotnet-editor/webpack.config.js +++ b/src/microsoft-trydotnet-editor/webpack.config.js @@ -15,12 +15,20 @@ module.exports = { extensions: ['.ts', '.js'], conditionNames: ['import', 'require', 'default'] }, + ignoreWarnings: [ + (warning) => + warning.module?.resource?.includes('@microsoft/polyglot-notebooks/dist/setup.js') && + warning.message?.includes('require function is used in a way in which dependencies cannot be statically extracted') + ], output: { globalObject: 'self', filename: '[name].bundle.js', path: path.resolve(__dirname, 'dist'), clean: true }, + performance: { + hints: false + }, module: { rules: [ {