Skip to content
This repository was archived by the owner on Nov 20, 2023. It is now read-only.
This repository was archived by the owner on Nov 20, 2023. It is now read-only.

Map Chunks to Sentry Projects #46

@dan-kez

Description

@dan-kez

Thanks for the awesome plugin!

I'd love to have the ability to map webpack generated chunks to separate sentry projects.

My application is split into multiple chunks that are asynchronously loaded and some their own own instance of Raven (see getsentry/sentry-javascript#1272). This is really helpful for a complex application as we can chunk each section of the webapp and load dependencies / pages gradually.

Right now I have to have multiple configFiles for each project just to pass in a different project name. I'd rather be able to share 1 config file for things like auth & organization and pass in the project name as an option.

Proposed interface:

 new SentryCliPlugin({
            include: 'dist',
            configFile: '.sentryclirc',
            ignoreFile: '.gitignore',
            configOptions: { project: 'some-project' },
            ignore: ['node_modules', 'webpack.config.js'],
}),

or

 new SentryCliPlugin({
            include: 'dist',
            ignoreFile: '.gitignore',
            configOptions: { project: 'some-project', organization: 'organization-value-here' },
            ignore: ['node_modules', 'webpack.config.js'],
}),

what I currently do:

[
 new SentryCliPlugin({
            include: 'dist',
            configFile: '.sentryclirc.project_1',
            ignoreFile: '.gitignore',
            ignore: ['node_modules', 'webpack.config.js'],
}),
 new SentryCliPlugin({
            include: 'dist',
            configFile: '.sentryclirc.project_2,
            ignoreFile: '.gitignore',
            ignore: ['node_modules', 'webpack.config.js'],
}),
 new SentryCliPlugin({
            include: 'dist',
            configFile: '.sentryclirc.project_3',
            ignoreFile: '.gitignore',
            ignore: ['node_modules', 'webpack.config.js'],
}),
]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions