-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Expand file tree
/
Copy pathrollup.common.js
More file actions
27 lines (21 loc) · 637 Bytes
/
rollup.common.js
File metadata and controls
27 lines (21 loc) · 637 Bytes
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
import { readFileSync } from 'fs';
import { extend } from './underscore-esm.js';
var intro = readFileSync('modules/index.js', 'utf-8').split('\n').slice(3, 7).join('\n');
var outputBase = {
strict: false,
externalLiveBindings: false,
freeze: false,
};
var sourcemapBase = {
sourcemap: true,
sourcemapExcludeSources: true,
};
export function outputConf(particular) {
return extend(particular, outputBase);
}
export function sourcemapConf(particular) {
return extend(particular, outputBase, sourcemapBase);
}
export function monolithConf(particular) {
return extend(particular, outputBase, sourcemapBase, {intro});
}