-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrollup.config.js
More file actions
91 lines (89 loc) · 2.44 KB
/
rollup.config.js
File metadata and controls
91 lines (89 loc) · 2.44 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
export default [
{
input: 'src/RenderPass.js',
output: {
file: 'build/RenderPass.js',
format: 'esm',
banner: '/* @ts-self-types="./RenderPass.d.ts" */'
},
plugins: []
},
{
input: 'src/ScaleMode.js',
output: {
file: 'build/ScaleMode.js',
format: 'esm',
banner: '/* @ts-self-types="./ScaleMode.d.ts" */'
},
plugins: []
},
{
input: 'src/PresentationFormat.js',
output: {
file: 'build/PresentationFormat.js',
format: 'esm',
banner: '/* @ts-self-types="./PresentationFormat.d.ts" */'
},
plugins: []
},
{
input: 'src/RenderPasses.js',
output: {
file: 'build/RenderPasses.js',
format: 'esm',
banner: '/* @ts-self-types="./RenderPasses.d.ts" */'
},
external: [
'./core/RenderPasses/color/index.js',
'./core/RenderPasses/grayscale/index.js',
'./core/RenderPasses/chromaticAberration/index.js',
'./core/RenderPasses/pixelate/index.js',
'./core/RenderPasses/lensDistortion/index.js',
'./core/RenderPasses/filmgrain/index.js',
'./core/RenderPasses/bloom/index.js',
'./core/RenderPasses/blur/index.js',
'./core/RenderPasses/waves/index.js',
'./points.js',
'./RenderPass.js',
],
plugins: []
},
{
input: 'src/entries.js',
output: {
file: 'build/points.js',
format: 'esm',
banner: '/* @ts-self-types="./points.d.ts" */'
},
plugins: []
},
{
input: {
animation: 'src/core/animation.js',
audio: 'src/core/audio.js',
cellular2d: 'src/core/cellular2d.js',
classicnoise2d: 'src/core/classicnoise2d.js',
classicnoise3d: 'src/core/classicnoise3d.js',
color: 'src/core/color.js',
debug: 'src/core/debug.js',
defaultConstants: 'src/core/defaultConstants.js',
defaultFunctions: 'src/core/defaultFunctions.js',
defaultStructs: 'src/core/defaultStructs.js',
defaultVertexStructs: 'src/core/defaultVertexStructs.js',
effects: 'src/core/effects.js',
image: 'src/core/image.js',
math: 'src/core/math.js',
noise2d: 'src/core/noise2d.js',
random: 'src/core/random.js',
sdf: 'src/core/sdf.js',
valuenoise: 'src/core/valuenoise.js',
voronoi: 'src/core/voronoi.js',
},
output: {
dir: 'build/core',
format: 'esm',
entryFileNames: '[name].js',
banner: chunk => `/* @ts-self-types="./${chunk.name}.d.ts" */`,
}
},
];