10000 fix: browser npm package + add error for manual tests · DanielGibbsNZ/sentry-javascript@cb00da2 · GitHub
[go: up one dir, main page]

Skip to content

Commit cb00da2

Browse files
committed
fix: browser npm package + add error for manual tests
1 parent 70dafe3 commit cb00da2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/browser/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default [
6666
interop: false,
6767
sourcemap: true,
6868
},
69-
external: ['@sentry/core', '@sentry/hub', '@sentry/minimal', 'tslib'],
69+
external: ['@sentry/core', '@sentry/hub', '@sentry/minimal'],
7070
plugins: [
7171
typescript({
7272
tsconfig: 'tsconfig.build.json',

packages/browser/test/manual/npm-build.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ function runTests() {
3939
const bundlePath = path.join(__dirname, 'tmp.js');
4040
const { window } = new JSDOM(``, { runScripts: 'dangerously' });
4141

42-
window.onerror = function() {
42+
window.onerror = function(error) {
43+
console.error('ERROR thrown in manual test:');
44+
console.error(error);
45+
console.error('------------------');
4346
process.exit(1);
4447
};
4548

0 commit comments

Comments
 (0)
0