Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrates to vite@6 to drop base64 inlined worker source from all bundles #1637

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/cuddly-dolphins-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@rrweb/all": patch
"@rrweb/packer": patch
"@rrweb/record": patch
"rrweb-snapshot": patch
"rrweb": patch
"@rrweb/web-extension": patch
---

Drop base64 inlined worker source from all bundles
2 changes: 1 addition & 1 deletion packages/all/package.json
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@
],
"devDependencies": {
"puppeteer": "^20.9.0",
"vite": "^5.3.1",
"vite": "^6.0.1",
"vite-plugin-dts": "^3.9.1",
"vitest": "^1.4.0",
"typescript": "^5.4.5"
2 changes: 1 addition & 1 deletion packages/packer/package.json
Original file line number Diff line number Diff line change
@@ -71,7 +71,7 @@
"package.json"
],
"devDependencies": {
"vite": "^5.3.1",
"vite": "^6.0.1",
"vite-plugin-dts": "^3.9.1",
"vitest": "^1.4.0",
"typescript": "^5.4.5"
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@
"devDependencies": {
"rrweb": "^2.0.0-alpha.18",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite": "^6.0.1",
"vite-plugin-dts": "^3.9.1"
},
"peerDependencies": {
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@
"devDependencies": {
"rrweb": "^2.0.0-alpha.18",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite": "^6.0.1",
"vite-plugin-dts": "^3.9.1"
},
"peerDependencies": {
2 changes: 1 addition & 1 deletion packages/plugins/rrweb-plugin-console-record/package.json
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@
"devDependencies": {
"rrweb": "^2.0.0-alpha.18",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite": "^6.0.1",
"vite-plugin-dts": "^3.9.1",
"vitest": "^1.4.0",
"puppeteer": "^20.9.0"
2 changes: 1 addition & 1 deletion packages/plugins/rrweb-plugin-console-replay/package.json
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@
"@rrweb/rrweb-plugin-console-record": "^2.0.0-alpha.18",
"rrweb": "^2.0.0-alpha.18",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite": "^6.0.1",
"vite-plugin-dts": "^3.9.1"
},
"peerDependencies": {
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@
"devDependencies": {
"rrweb": "^2.0.0-alpha.18",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite": "^6.0.1",
"vite-plugin-dts": "^3.9.1"
},
"peerDependencies": {
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@
"@rrweb/rrweb-plugin-sequential-id-record": "^2.0.0-alpha.18",
"rrweb": "^2.0.0-alpha.18",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite": "^6.0.1",
"vite-plugin-dts": "^3.9.1"
},
"peerDependencies": {
2 changes: 1 addition & 1 deletion packages/record/package.json
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@
],
"devDependencies": {
"puppeteer": "^20.9.0",
"vite": "^5.3.1",
"vite": "^6.0.1",
"vite-plugin-dts": "^3.9.1",
"vitest": "^1.4.0",
"typescript": "^5.4.5"
2 changes: 1 addition & 1 deletion packages/replay/package.json
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@
],
"devDependencies": {
"puppeteer": "^20.9.0",
"vite": "^5.3.1",
"vite": "^6.0.1",
"vite-plugin-dts": "^3.9.1",
"vitest": "^1.4.0",
"typescript": "^5.4.5"
2 changes: 1 addition & 1 deletion packages/rrdom-nodejs/package.json
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@
"compare-versions": "^4.1.3",
"eslint": "^8.15.0",
"puppeteer": "^9.1.1",
"vite": "^5.3.1",
"vite": "^6.0.1",
"vite-plugin-dts": "^3.9.1",
"vitest": "^1.4.0",
"typescript": "^5.4.5"
2 changes: 1 addition & 1 deletion packages/rrdom/package.json
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@
"eslint": "^8.15.0",
"puppeteer": "^17.1.3",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite": "^6.0.1",
"vite-plugin-dts": "^3.9.1"
},
"dependencies": {
2 changes: 1 addition & 1 deletion packages/rrweb-player/package.json
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
"svelte-preprocess": "^5.0.3",
"svelte2tsx": "^0.7.30",
"tslib": "^2.0.0",
"vite": "^5.3.1"
"vite": "^6.0.1"
},
"dependencies": {
"@tsconfig/svelte": "^1.0.0",
2 changes: 1 addition & 1 deletion packages/rrweb-snapshot/package.json
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@
"ts-node": "^7.0.1",
"tslib": "^1.9.3",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite": "^6.0.1",
"vite-plugin-dts": "^3.9.1",
"vitest": "^1.4.0"
},
3 changes: 2 additions & 1 deletion packages/rrweb/package.json
Original file line number Diff line number Diff line change
@@ -46,6 +46,7 @@
"default": "./dist/rrweb.cjs"
}
},
"./dist/rrweb.css": "./dist/rrweb.css",
"./dist/style.css": "./dist/style.css"
},
"files": [
@@ -76,7 +77,7 @@
"ts-node": "^10.9.1",
"tslib": "^2.3.1",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite": "^6.0.1",
"vite-plugin-dts": "^3.9.1"
},
"dependencies": {
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@
"package.json"
],
"devDependencies": {
"vite": "^5.3.1",
"vite": "^6.0.1",
"vite-plugin-dts": "^3.9.1"
},
"browserslist": [
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@
"package.json"
],
"devDependencies": {
"vite": "^5.2.8",
"vite": "^6.0.1",
"vite-plugin-dts": "^3.8.1"
},
"dependencies": {}
2 changes: 1 addition & 1 deletion packages/web-extension/package.json
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@
"@vitejs/plugin-react": "^4.2.1",
"semver": "^7.6.3",
"type-fest": "^2.19.0",
"vite": "^5.3.1",
"vite": "^6.0.1",
"vite-plugin-web-extension": "^4.1.3",
"vite-plugin-zip-pack": "^1.2.2",
"webextension-polyfill": "^0.10.0"
7 changes: 1 addition & 6 deletions vite.config.default.ts
Original file line number Diff line number Diff line change
@@ -119,6 +119,7 @@ export default function (
build: {
// See https://vitejs.dev/guide/build.html#library-mode
lib: {
cssFileName: 'style',
entry,
name,
fileName,
@@ -137,12 +138,6 @@ export default function (
minify: false,

sourcemap: true,

// rollupOptions: {
// output: {
// manualChunks: {},
// },
// },
},
plugins: [
dts({
Loading