Closed
Description
After merging in replay, with only minimal changes, we need to apply our monorepo's build config to the replay package.
To Do:
- chore(replay): Add size limit entries for Replay #6288
- chore(replay): Use and extend monorepo's
.eslintrc.js
config #6302 - chore(replay): Use monorepo's prepack script #6309
- chore(replay): Align and clean up
tsconfig.json
s #6308 - build(replay): Use Monorepo's rollup config to build Replay #6343
- Update rollup configs to use our own configs and plugins
- Align
build
directory structure with other packages (esm, cjs, types) - Adjust npm scripts (add
build:types
, adjustbuild:rollup
) - chore(replay): Cleanup
package.json
scripts #6348
- build(replay): Adjust type declaration output directory #6353
- test(replay): Fix replay test tsconfig #6350
- Verify tarball contents
Risks:
Updating the tarball structure will be a breaking change for anyone who explicitly imports modules from the replay package. This is fine, as we're not yet stable and we're jumping major versions from 0.x to 7.x anyway. Also, this is an edge case scenario and definitely not something that concerns the majority of our users. More info: getsentry/sentry-replay#321
Build changes have the potential to cause bugs and issues. We'll have to be careful. Verifying the tarball contents before it is released is absolutely necessary.
ref: #5326