topcoder-react-lib
Version:
The implementation of TC lib for ReactJS projects
35 lines (33 loc) • 791 B
JavaScript
// eslint-disable-next-line import/no-extraneous-dependencies
const webpack = require('webpack');
module.exports = {
node: {
tls: 'empty',
fs: 'empty',
net: 'empty',
},
// Don't include the dependencies to keep built bundle small,
// they will be provided by the app using this lib
externals: [
'config',
'qs',
'lodash',
'le_node',
'moment',
'moment-timezone',
'moment-duration-format',
'react',
'react-dom',
'redux',
'redux-actions',
'isomorphic-fetch',
'@topcoder-platform/tc-auth-lib',
'to-capital-case',
'topcoder-react-utils',
'tc-core-library-js',
],
plugins: [
// eslint-disable-next-line global-require
new webpack.DefinePlugin({ CONFIG: JSON.stringify(require('config')) }),
],
};