forked from rrweb-io/rrweb
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.size-limit.js
43 lines (43 loc) · 1.17 KB
/
.size-limit.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
module.exports = [
// Main browser webpack builds
{
name: 'rrweb - record only (gzipped)',
path: 'packages/rrweb/es/rrweb/packages/rrweb/src/entries/all.js',
import: '{ record }',
gzip: true,
},
{
name: 'rrweb - record & CanvasManager only (gzipped)',
path: 'packages/rrweb/es/rrweb/packages/rrweb/src/entries/all.js',
import: '{ record, CanvasManager }',
gzip: true,
},
{
name: 'rrweb - record only (min)',
path: 'packages/rrweb/es/rrweb/packages/rrweb/src/entries/all.js',
import: '{ record }',
gzip: false,
},
{
name: 'rrweb - record with treeshaking flags (gzipped)',
path: 'packages/rrweb/es/rrweb/packages/rrweb/src/entries/all.js',
import: '{ record }',
gzip: true,
modifyWebpackConfig: function (config) {
const webpack = require('webpack');
config.plugins.push(
new webpack.DefinePlugin({
__RRWEB_EXCLUDE_SHADOW_DOM__: true,
__RRWEB_EXCLUDE_IFRAME__: true,
}),
);
return config;
},
},
{
name: 'rrweb - Replayer',
path: 'packages/rrweb/es/rrweb/packages/rrweb/src/entries/all.js',
import: '{ Replayer }',
gzip: true,
},
];