You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MIGRATION.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,11 @@
2
2
3
3
This document serves as a migration guide, documenting all breaking changes between major versions of the Sentry bundler plugins.
4
4
5
+
## Unreleased
6
+
7
+
- The minimum compatible version of rollup is version `3.2.0`.
8
+
- Removed functionality for the `releaseInjectionTargets` option.
9
+
5
10
## [Unreleased] Upgrading from 1.x to 2.x (Webpack Plugin Only)
6
11
7
12
Version 2 of `@sentry/webpack-plugin` is a complete rewrite of version 1, relying on bundler-agnostic code (based on [unjs/unplugin](https://github.com/unjs/unplugin)). While we tried to keep changes to v1 of the webpack plugin minimal, a adjustments are nevertheless necessary:
* Responsible for returning the "sentry-release-injector" ID when we encounter it. We return the ID so load is
181
-
* called and we can "virtually" load the module. See `load` hook for more info on why it's virtual.
182
-
*
183
-
* We also record the id (i.e. absolute path) of any non-entrypoint.
184
-
*
185
-
* @param id For imports: The absolute path of the module to be imported. For entrypoints: The path the user defined as entrypoint - may also be relative.
186
-
* @param importer For imports: The absolute path of the module that imported this module. For entrypoints: `undefined`.
187
-
* @param options Additional information to use for making a resolving decision.
188
-
* @returns `"sentry-release-injector"` when the imported file is called `"sentry-release-injector"`. Otherwise returns `undefined`.
// Appending instead of prepending has less probability of mucking with user's source maps.
274
-
// Luckily import statements get hoisted to the top anyways.
275
-
// The import needs to be an absolute path because Rollup doesn't bundle stuff in `node_modules` by default when bundling CJS (unless the import path is absolute or the node-resolve-plugin is used).
0 commit comments