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
Set `sourcemap` in `output` to `true` in your `rollup.config.js`:
9
+
10
+
```js
11
+
module.exports= {
12
+
build: {
13
+
sourcemap:true
14
+
}
15
+
}
16
+
```
17
+
18
+
If you're using code transpiler plugins (such as Typescript), ensure to enable source-mapping there as well.
19
+
20
+
## Set up `@backtrace-labs/rollup-plugin`
21
+
22
+
### Construct an upload URL
23
+
24
+
A specific URL is required to upload source maps. Follow [these instructions](https://docs.saucelabs.com/error-reporting/project-setup/submission-url/) to create an upload URL for the `sourcemap` endpoint with a `symbol-post` token.
25
+
26
+
### Install `@backtrace-labs/rollup-plugin` as a developer dependency:
Set `sourcemap` in `output` to `true` in your `vite.config.js`:
9
+
10
+
```js
11
+
module.exports= {
12
+
build: {
13
+
sourcemap:true
14
+
}
15
+
}
16
+
```
17
+
18
+
If you're using code transpiler plugins (such as Typescript), ensure to enable source-mapping there as well.
19
+
20
+
## Set up `@backtrace-labs/vite-plugin`
21
+
22
+
### Construct an upload URL
23
+
24
+
A specific URL is required to upload source maps. Follow [these instructions](https://docs.saucelabs.com/error-reporting/project-setup/submission-url/) to create an upload URL for the `sourcemap` endpoint with a `symbol-post` token.
25
+
26
+
### Install `@backtrace-labs/vite-plugin` as a developer dependency:
Set `devtool` to `source-map` in your `webpack.config.js`:
9
+
10
+
```js
11
+
module.exports= {
12
+
devtool:'source-map',
13
+
// other configuration
14
+
}
15
+
```
16
+
17
+
If you're using code transpiler plugins (such as Typescript), ensure to enable `source-mapping` there as well.
18
+
19
+
## Set up `@backtrace-labs/webpack-plugin`
20
+
21
+
### Construct an upload URL
22
+
23
+
A specific URL is required to upload source maps. Follow [these instructions](https://docs.saucelabs.com/error-reporting/project-setup/submission-url/) to create an upload URL for the `sourcemap` endpoint with a `symbol-post` token.
24
+
25
+
### Install `@backtrace-labs/webpack-plugin` as a developer dependency:
0 commit comments