forked from nomic-ai/deepscatter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.cjs
47 lines (40 loc) · 849 Bytes
/
vite.config.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
const glslify = require('rollup-plugin-glslify');
export default {
build: {
target: 'es2019',
minify: 'terser',
lib: {
entry: __dirname + '/src/deepscatter.ts',
name: 'Deepscatter',
formats: ['es', 'umd'],
},
},
plugins: [
glslify({ compress: false }), // for debugging
],
};
/* Our friend in Northern VA advises this to remove Arrow:
const glslify = require('rollup-plugin-glslify');
export default {
build: {
target: 'es2019',
minify: 'terser',
lib: {
entry: __dirname + '/src/deepscatter.ts',
name: 'Deepscatter',
formats: ['es', 'umd'],
},
rollupOptions: {
external: ['apache-arrow'],
output: {
globals: {
'apache-arrow': 'ApacheArrow'
}
}
}
},
plugins: [
glslify({ compress: false }),
],
};
*/