-
Notifications
You must be signed in to change notification settings - Fork 11
/
.size-limit.cjs
51 lines (50 loc) · 1.06 KB
/
.size-limit.cjs
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
44
45
46
47
48
49
50
51
module.exports = [
{
name: '@lottiefiles/dotlottie-web',
path: 'packages/web/dist/index.js',
import: '{ DotLottie }',
},
{
name: '@lottiefiles/dotlottie-web WASM',
path: 'packages/web/dist/*.wasm',
modifyWebpackConfig: (config) => {
config.experiments = {
asyncWebAssembly: true,
};
},
},
{
name: '@lottiefiles/dotlottie-react',
path: 'packages/react/dist/index.js',
import: '*',
},
{
name: '@lottiefiles/dotlottie-vue',
path: 'packages/vue/dist/index.js',
import: '*',
},
{
name: '@lottiefiles/dotlottie-wc',
path: 'packages/wc/dist/index.js',
import: '*',
},
{
name: '@lottiefiles/dotlottie-svelte',
path: 'packages/svelte/dist/index.js',
import: '*',
modifyWebpackConfig: (config) => {
config.module.rules.push({
test: /\.svelte$/,
use: {
loader: 'svelte-loader',
},
});
return config;
},
},
{
name: '@lottiefiles/dotlottie-solid',
path: 'packages/solid/dist/index.js',
import: '*',
},
];