update bundle format and add sourcemap
This commit is contained in:
@@ -14,7 +14,7 @@ export default [
|
|||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
name: 'rrwebSnapshot',
|
name: 'rrwebSnapshot',
|
||||||
format: 'umd',
|
format: 'iife',
|
||||||
file: pkg.unpkg,
|
file: pkg.unpkg,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -25,8 +25,9 @@ export default [
|
|||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
name: 'rrwebSnapshot',
|
name: 'rrwebSnapshot',
|
||||||
format: 'umd',
|
format: 'iife',
|
||||||
file: toMinPath(pkg.unpkg),
|
file: toMinPath(pkg.unpkg),
|
||||||
|
sourcemap: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -59,6 +60,7 @@ export default [
|
|||||||
{
|
{
|
||||||
format: 'esm',
|
format: 'esm',
|
||||||
file: toMinPath(pkg.module),
|
file: toMinPath(pkg.module),
|
||||||
|
sourcemap: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user