forked from lit/lit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
53 lines (50 loc) · 1.25 KB
/
rollup.config.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
47
48
49
50
51
52
53
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
import {litProdConfig} from '../../rollup-common.js';
import {createRequire} from 'module';
export const defaultConfig = (options = {}) =>
litProdConfig({
packageName: createRequire(import.meta.url)('./package.json').name,
entryPoints: [
'directives/async-append',
'directives/async-replace',
'directives/cache',
'directives/choose',
'directives/class-map',
'directives/guard',
'directives/if-defined',
'directives/join',
'directives/keyed',
'directives/live',
'directives/map',
'directives/range',
'directives/ref',
'directives/repeat',
'directives/style-map',
'directives/template-content',
'directives/unsafe-html',
'directives/unsafe-svg',
'directives/until',
'directives/when',
'lit-html',
'directive',
'directive-helpers',
'async-directive',
'static',
'experimental-hydrate',
'private-ssr-support',
'polyfill-support',
'is-server',
],
bundled: [
{
file: 'polyfill-support',
},
],
includeNodeBuild: true,
...options,
});
export default defaultConfig();