update the bundle config
This commit is contained in:
@@ -3,8 +3,19 @@ import typescript from 'rollup-plugin-typescript';
|
||||
export default {
|
||||
input: './src/index.ts',
|
||||
plugins: [typescript()],
|
||||
output: {
|
||||
name: 'rrweb',
|
||||
format: 'iife',
|
||||
},
|
||||
output: [
|
||||
{
|
||||
format: 'cjs',
|
||||
file: './dist/index.js',
|
||||
},
|
||||
{
|
||||
format: 'esm',
|
||||
file: './dist/module.js',
|
||||
},
|
||||
{
|
||||
name: 'rrwebSnapshot',
|
||||
format: 'iife',
|
||||
file: './dist/browser.js',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user