Skip to content

Commit 4a8b3a6

Browse files
committed
Fix build to be re-runnable without module changes
1 parent 0f201c2 commit 4a8b3a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.esbuild.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const path = require('path');
55
// Removes the warning from the app insights module since we don't want it to spam the console
66
function patchAppInsightsModules() {
77
const nodeAppInsightsModule = fs.readFileSync(path.join(__dirname, 'node_modules/applicationinsights/out/Library/Config.js'), 'utf8');
8-
const fileWithRemovedWarning = nodeAppInsightsModule.replace(/Logging.warn\([^)]*invalid instrumentation key[^)]*\)/, '/* $& */');
8+
const fileWithRemovedWarning = nodeAppInsightsModule.replace(/Logging.warn\([^)]*invalid instrumentation key[^)]*\)/, '// Warning removed');
99
fs.writeFileSync(path.join(__dirname, 'node_modules/applicationinsights/out/Library/Config.js'), fileWithRemovedWarning, 'utf8');
1010
}
1111

0 commit comments

Comments
 (0)