Release 0.4.0

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 795e6cd8dc
commit 70c8a6b9d1
3 changed files with 7 additions and 3 deletions

1
.gitignore vendored
View File

@@ -8,3 +8,4 @@ yarn.lock
temp
dist
lib

View File

@@ -1,6 +1,6 @@
{
"name": "rrweb-player",
"version": "0.3.17",
"version": "0.4.0",
"devDependencies": {
"eslint": "^5.10.0",
"eslint-config-google": "^0.11.0",
@@ -27,9 +27,11 @@
"start:dev": "sirv public --dev"
},
"description": "rrweb's replayer UI",
"main": "dist/index.js",
"main": "lib/index.js",
"module": "dist/index.mjs",
"unpkg": "dist/index.js",
"files": [
"lib",
"dist"
],
"repository": {

View File

@@ -9,7 +9,8 @@ const production = !process.env.ROLLUP_WATCH;
export default [
{ file: pkg.module, format: 'es' },
{ file: pkg.main, format: 'iife', name: 'rrwebPlayer' },
{ file: pkg.main, format: 'cjs' },
{ file: pkg.unpkg, format: 'iife', name: 'rrwebPlayer' },
{ file: 'public/bundle.js', format: 'iife', name: 'rrwebPlayer' },
].map(output => ({
input: 'src/Player.html',