UNPKG

@sentry/core

Version:
22 lines (18 loc) • 701 B
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const debugLogger = require('../utils/debug-logger.js'); function warnOnRemovedBuildOptions(options, removedKeys, logWarning = (message) => debugLogger.consoleSandbox(() => { console.warn(message); })) { if (!options) { return; } const presentKeys = removedKeys.filter((key) => key in options); if (!presentKeys.length) { return; } logWarning( `[Sentry] Removed in v11 and ignored: ${presentKeys.join(", ")}. Set bundler plugin options directly on the Sentry build options.` ); } exports.warnOnRemovedBuildOptions = warnOnRemovedBuildOptions; //# sourceMappingURL=warnOnRemovedBuildOptions.js.map