rename record only bundle iife name

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 31e8c17b0e
commit 564b54bb35

View File

@@ -21,7 +21,7 @@ let configs = [
plugins: [typescript(), resolve()], plugins: [typescript(), resolve()],
output: [ output: [
{ {
name: 'record', name: 'rrwebRecord',
format: 'iife', format: 'iife',
file: toRecordPath(pkg.unpkg), file: toRecordPath(pkg.unpkg),
}, },
@@ -32,7 +32,7 @@ let configs = [
plugins: [typescript(), resolve(), terser()], plugins: [typescript(), resolve(), terser()],
output: [ output: [
{ {
name: 'record', name: 'rrwebRecord',
format: 'iife', format: 'iife',
file: toMinPath(toRecordPath(pkg.unpkg)), file: toMinPath(toRecordPath(pkg.unpkg)),
sourcemap: true, sourcemap: true,