-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.config.js
71 lines (64 loc) · 1.91 KB
/
package.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
const webpack = require('webpack');
const _ = require('lodash');
const baseConfig = require('./webpack.config');
const packageConfig = _.cloneDeep(baseConfig);
// eslint-disable-next-line no-underscore-dangle
const __DEV__ = process.env.NODE_ENV === 'development';
packageConfig.output.libraryTarget = 'commonjs';
packageConfig.externals = {
bluebird: 'bluebird',
bows: 'bows',
'browserify-zlib': 'browserify-zlib',
buffer: 'buffer',
classnames: 'classnames',
crossfilter2: 'crossfilter2',
'd3-array': 'd3-array',
'd3-format': 'd3-format',
'd3-scale': 'd3-scale',
'd3-shape': 'd3-shape',
'd3-time': 'd3-time',
'd3-time-format': 'd3-time-format',
emotion: 'emotion',
events: 'events',
'fastest-validator': 'fastest-validator',
gsap: 'gsap',
i18next: 'i18next',
intl: 'intl',
'intl-pluralrules': 'intl-pluralrules',
lodash: 'lodash',
memorystream: 'memorystream',
moment: 'moment',
'moment-timezone': 'moment-timezone',
'parse-svg-path': 'parse-svg-path',
process: 'process',
'prop-types': 'prop-types',
react: 'react',
'react-clipboard.js': 'react-clipboard.js',
'react-collapse': 'react-collapse',
'react-dimensions': 'react-dimensions',
'react-dom': 'react-dom',
'react-markdown': 'react-markdown',
'react-motion': 'react-motion',
'react-redux': 'react-redux',
'react-select': 'react-select',
'react-sizeme': 'react-sizeme',
'react-transition-group-plus': 'react-transition-group-plus',
'readable-stream': 'readable-stream',
reductio: 'reductio',
redux: 'redux',
'serialize-svg-path': 'serialize-svg-path',
sundial: 'sundial',
'svg-to-pdfkit': 'svg-to-pdfkit',
'text-table': 'text-table',
'translate-svg-path': 'translate-svg-path',
util: 'util',
victory: 'victory',
'voilab-pdf-table': 'voilab-pdf-table',
};
packageConfig.plugins = [
new webpack.DefinePlugin({
__DEV__,
}),
];
packageConfig.mode = 'production';
module.exports = packageConfig;