-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrollup.config.js
123 lines (122 loc) · 3.12 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import babel from '@rollup/plugin-babel'
import json from '@rollup/plugin-json'
import builtins from 'builtin-modules'
export default {
input: 'index.es',
output: {
file: 'index.js',
format: 'cjs',
sourcemap: true,
},
external: [
...builtins,
// FIXME: use valid source for externals
'@babel/core',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-decorators',
'@babel/plugin-proposal-do-expressions',
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-proposal-function-bind',
'@babel/plugin-proposal-function-sent',
'@babel/plugin-proposal-json-strings',
'@babel/plugin-proposal-logical-assignment-operators',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-proposal-numeric-separator',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-pipeline-operator',
'@babel/plugin-proposal-throw-expressions',
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-syntax-import-meta',
'@babel/preset-env',
'@babel/preset-react',
'@babel/preset-typescript',
'@babel/register',
'@blueprintjs/core',
'@blueprintjs/datetime',
'@blueprintjs/select',
'@exponent/electron-cookies',
'@fortawesome/fontawesome-svg-core',
'@fortawesome/free-brands-svg-icons',
'@fortawesome/free-regular-svg-icons',
'@fortawesome/free-solid-svg-icons',
'@fortawesome/react-fontawesome',
'@skagami/react-fontawesome',
'babel-plugin-add-module-exports',
'babel-plugin-dynamic-import-node',
'babel-plugin-styled-components',
'bindings',
'bluebird',
'chalk',
'classnames',
'coffee-react',
'coffee-script',
'create-react-class',
'cson',
'electron-devtools-installer',
'electron-log',
'electron-react-titlebar',
'electron-updater',
'fast-memoize',
'font-awesome',
'fs-extra',
'fuse.js',
'glob',
'header-case-normalizer',
'http-proxy-agent',
'i18n-2',
'i18next',
'immutable',
'json-format',
'lodash',
'memoize-one',
'mime',
'moment-timezone',
'mousetrap',
'node-fetch',
'npm',
'npm-package-arg',
'os-name',
'pac-proxy-agent',
'pangu',
'path-extra',
'poi-asset-contributor-data',
'poi-asset-themes',
'poi-lib-battle',
'polished',
'prop-types',
'react',
'react-bootstrap',
'react-dom',
'react-electron-web-view',
'react-file-dropzone',
'react-fontawesome',
'react-grid-layout',
'react-i18next',
'react-redux',
'react-remarkable',
'react-resizable-area',
'react-ultimate-pagination',
'react-virtualized',
'reduce-reducers',
'redux',
'redux-observers',
'redux-thunk',
'request',
'reselect',
'semver',
'socks5-client',
'styled-components',
'swf-extract',
'wanakana',
'yargs',
],
plugins: [
resolve({ extensions: ['.js', '.es', '.ts', '.tsx'] }),
commonjs(),
babel(),
json(),
],
}