update bundle format and add sourcemap

This commit is contained in:
Yanzhen Yu
2018-11-23 22:46:42 +08:00
parent c617d2a49f
commit d186a06edf

View File

@@ -14,7 +14,7 @@ export default [
output: [
{
name: 'rrwebSnapshot',
format: 'umd',
format: 'iife',
file: pkg.unpkg,
},
],
@@ -25,8 +25,9 @@ export default [
output: [
{
name: 'rrwebSnapshot',
format: 'umd',
format: 'iife',
file: toMinPath(pkg.unpkg),
sourcemap: true,
},
],
},
@@ -59,6 +60,7 @@ export default [
{
format: 'esm',
file: toMinPath(pkg.module),
sourcemap: true,
},
],
},