-
Notifications
You must be signed in to change notification settings - Fork 29
/
.ocularrc.js
46 lines (37 loc) · 946 Bytes
/
.ocularrc.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
44
45
46
/** @typedef {import('ocular-dev-tools').OcularConfig} OcularConfig */
import {dirname, join} from 'path';
import {fileURLToPath} from 'url';
const packageRoot = dirname(fileURLToPath(import.meta.url));
/** @type {OcularConfig} */
const config = {
lint: {
paths: ['modules', 'test']
// paths: ['modules', 'test', 'examples', 'website']
},
babel: false,
bundle: {
globalName: 'hubble',
target: ['chrome110', 'firefox110', 'safari15'],
format: 'umd',
globals: {
'@hubble.gl/*': 'globalThis.hubble'
}
},
typescript: {
project: 'tsconfig.build.json'
},
aliases: {
'hubble.gl-test': join(packageRoot, './test')
},
coverage: {
test: 'browser'
},
entry: {
test: 'test/node.ts',
'test-browser': 'index.html',
// bench: 'test/bench/index.js',
// 'bench-browser': 'test/bench/browser.html',
size: 'test/size/import-nothing.js'
}
};
export default config;