@sentry/rollup-plugin
Version:
61 lines (55 loc) • 2.26 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var bundlerPluginCore = require('@sentry/bundler-plugin-core');
function rollupReleaseInjectionPlugin(injectionCode) {
return {
name: "sentry-rollup-release-injection-plugin",
rollup: bundlerPluginCore.createRollupReleaseInjectionHooks(injectionCode)
};
}
function rollupComponentNameAnnotatePlugin(ignoredComponents) {
return {
name: "sentry-rollup-component-name-annotate-plugin",
rollup: bundlerPluginCore.createComponentNameAnnotateHooks(ignoredComponents)
};
}
function rollupDebugIdInjectionPlugin() {
return {
name: "sentry-rollup-debug-id-injection-plugin",
rollup: bundlerPluginCore.createRollupDebugIdInjectionHooks()
};
}
function rollupModuleMetadataInjectionPlugin(injectionCode) {
return {
name: "sentry-rollup-module-metadata-injection-plugin",
rollup: bundlerPluginCore.createRollupModuleMetadataInjectionHooks(injectionCode)
};
}
function rollupDebugIdUploadPlugin(upload, logger, createDependencyOnBuildArtifacts) {
return {
name: "sentry-rollup-debug-id-upload-plugin",
rollup: bundlerPluginCore.createRollupDebugIdUploadHooks(upload, logger, createDependencyOnBuildArtifacts)
};
}
function rollupBundleSizeOptimizationsPlugin(replacementValues) {
return {
name: "sentry-rollup-bundle-size-optimizations-plugin",
rollup: bundlerPluginCore.createRollupBundleSizeOptimizationHooks(replacementValues)
};
}
var sentryUnplugin = bundlerPluginCore.sentryUnpluginFactory({
releaseInjectionPlugin: rollupReleaseInjectionPlugin,
componentNameAnnotatePlugin: rollupComponentNameAnnotatePlugin,
debugIdInjectionPlugin: rollupDebugIdInjectionPlugin,
moduleMetadataInjectionPlugin: rollupModuleMetadataInjectionPlugin,
debugIdUploadPlugin: rollupDebugIdUploadPlugin,
bundleSizeOptimizationsPlugin: rollupBundleSizeOptimizationsPlugin
});
// eslint-disable-next-line @typescript-eslint/no-explicit-any
var sentryRollupPlugin = sentryUnplugin.rollup;
Object.defineProperty(exports, 'sentryCliBinaryExists', {
enumerable: true,
get: function () { return bundlerPluginCore.sentryCliBinaryExists; }
});
exports.sentryRollupPlugin = sentryRollupPlugin;
//# sourceMappingURL=index.js.map