Skip to content

Commit

Permalink
fix: add missing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiiaSvietlova committed Oct 24, 2024
1 parent 8aaaf95 commit fec934b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/plugin-browser-context/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@bugsnag/plugin-browser-context",
"version": "8.0.0",
"main": "dist/context.ts",
"main": "dist/context.js",
"types": "dist/types/context.d.ts",
"exports": {
".": {
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-browser-context/rollup.config.npm.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import createRollupConfig from "../../.rollup/index.mjs";

export default createRollupConfig({
input: "src/context.ts"
input: "src/context.ts",
external: ["@bugsnag/core/lib/es-utils/assign"]
});
2 changes: 1 addition & 1 deletion packages/plugin-window-unhandled-rejection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"access": "public"
},
"files": [
"*.js"
"dist"
],
"author": "Bugsnag",
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import createRollupConfig from '../../.rollup/index.mjs'

export default createRollupConfig({
input: 'src/unhandled-rejection.ts'
input: 'src/unhandled-rejection.ts',
external: ['@bugsnag/core/lib/iserror', '@bugsnag/core/lib/es-utils/map']
})
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default (win = window): Plugin => {
} catch (e) {}

// Report unhandled promise rejections as handled if the user has configured it
// @ts-expect-error _config is private API
const unhandled = !client._config.reportUnhandledPromiseRejectionsAsHandled

const event = client.Event.create(error, false, {
Expand Down

0 comments on commit fec934b

Please sign in to comment.