forked from xeokit/xeokit-convert
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.tests.js
More file actions
41 lines (39 loc) · 1.08 KB
/
rollup.config.tests.js
File metadata and controls
41 lines (39 loc) · 1.08 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
import {nodeResolve} from '@rollup/plugin-node-resolve';
import copy from "rollup-plugin-copy";
export default [
// Copy xeokit-sdk to test assets dir
{
input: "@xeokit/xeokit-sdk/dist/xeokit-sdk.es.js",
output: {
file: './assets/lib/xeokit-sdk.es.js',
format: 'es',
name: 'bundle'
},
plugins: [
nodeResolve(),
copy({
targets: [
{
src: './node_modules/web-ifc/web-ifc.wasm',
dest: 'visualTests'
},
{
src: './node_modules/web-ifc/web-ifc-api.js',
dest: 'assets/lib'
}
]
})
]
},
// Transpile web-ifc to test assets dir
{
input: './node_modules/web-ifc/web-ifc-api.js',
output: [
{
file: './assets/lib/web-ifc-browser.es.js',
format: 'es',
name: 'bundle'
}
]
}
];