Skip to content

Commit 03c26ed

Browse files
committed
ref: Use new worker package
1 parent 8d75149 commit 03c26ed

File tree

12 files changed

+11
-240
lines changed

12 files changed

+11
-240
lines changed

packages/replay-worker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/replay-worker",
3-
"version": "7.37.0",
3+
"version": "7.37.2",
44
"description": "Worker for @sentry/replay",
55
"main": "build/index.js",
66
"module": "build/index.js",

packages/replay/.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
module.exports = {
77
extends: ['../../.eslintrc.js'],
8-
ignorePatterns: ['rollup.config.worker.js'],
98
overrides: [
109
{
1110
files: ['worker/**/*.ts'],

packages/replay/package.json

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,22 @@
77
"types": "build/npm/types/index.d.ts",
88
"sideEffects": false,
99
"scripts": {
10-
"build": "run-s build:worker && run-p build:core build:types build:bundle",
11-
"build:transpile": "run-s build:worker build:core",
10+
"build": "run-p build:rollup build:types build:bundle",
11+
"build:rollup": "rollup -c rollup.npm.config.js",
1212
"build:bundle": "rollup -c rollup.bundle.config.js",
13-
"build:dev": "run-p build:worker build:transpile build:types",
14-
"build:worker": "rollup -c rollup.config.worker.js",
15-
"build:core": "rollup -c rollup.npm.config.js",
13+
"build:dev": "run-p build:rollup build:types",
1614
"build:types": "tsc -p tsconfig.types.json",
17-
"build:watch": "run-p build:worker:watch build:core:watch build:bundle:watch build:types:watch",
18-
"build:dev:watch": "run-p build:core:watch build:types:watch",
19-
"build:core:watch": "yarn build:core --watch",
20-
"build:worker:watch": "yarn build:worker --watch",
15+
"build:watch": "run-p build:rollup:watch build:bundle:watch build:types:watch",
16+
"build:dev:watch": "run-p build:rollup:watch build:types:watch",
17+
"build:rollup:watch": "yarn build:core --watch",
2118
"build:bundle:watch": "yarn build:bundle --watch",
2219
"build:types:watch": "tsc -p tsconfig.types.json --watch",
2320
"build:tarball": "ts-node ../../scripts/prepack.ts --bundles && npm pack ./build/npm",
2421
"circularDepCheck": "madge --circular src/index.ts",
2522
"clean": "rimraf build sentry-replay-*.tgz",
2623
"fix": "run-s fix:eslint fix:prettier",
2724
"fix:eslint": "eslint . --format stylish --fix",
28-
"fix:prettier": "prettier --write \"{src,test,scripts,worker}/**/*.ts\"",
25+
"fix:prettier": "prettier --write \"{src,test,scripts}/**/*.ts\"",
2926
"lint": "run-s lint:prettier lint:eslint",
3027
"lint:eslint": "eslint . --format stylish",
3128
"lint:prettier": "prettier --check \"{src,test,scripts,worker}/**/*.ts\"",
@@ -46,10 +43,9 @@
4643
"homepage": "https://docs.sentry.io/platforms/javascript/session-replay/",
4744
"devDependencies": {
4845
"@babel/core": "^7.17.5",
46+
"@sentry-internal/replay-worker": "7.37.2",
4947
"@sentry-internal/rrweb": "1.103.0",
50-
"@types/pako": "^2.0.0",
5148
"jsdom-worker": "^0.2.1",
52-
"pako": "^2.0.4",
5349
"tslib": "^1.9.3"
5450
},
5551
"dependencies": {

packages/replay/rollup.config.worker.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

packages/replay/rollup.npm.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ export default makeNPMConfigVariants(
55
hasBundles: true,
66
packageSpecificConfig: {
77
output: {
8-
// set exports to 'named' or 'auto' so that rollup doesn't warn about
9-
// the default export in `worker/worker.js`
8+
// set exports to 'named' or 'auto' so that rollup doesn't warn
109
exports: 'named',
1110
// set preserveModules to false because for Replay we actually want
1211
// to bundle everything into one file.

packages/replay/src/eventBuffer/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import workerString from '@sentry-internal/replay-worker';
12
import { logger } from '@sentry/utils';
23

34
import type { EventBuffer } from '../types';
4-
import workerString from '../worker/worker.js';
55
import { EventBufferArray } from './EventBufferArray';
66
import { EventBufferProxy } from './EventBufferProxy';
77

packages/replay/src/worker/worker.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/replay/test/unit/worker/Compressor.test.ts

Lines changed: 0 additions & 41 deletions
This file was deleted.

packages/replay/tsconfig.worker.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

packages/replay/worker/src/Compressor.ts

Lines changed: 0 additions & 61 deletions
This file was deleted.

packages/replay/worker/src/handleMessage.ts

Lines changed: 0 additions & 57 deletions
This file was deleted.

packages/replay/worker/src/worker.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)