2019-04-16 12:54:16 +02:00
|
|
|
const path = require('path');
|
2019-04-16 16:55:53 +02:00
|
|
|
const pkg = require('./package.json');
|
|
|
|
|
2019-04-24 18:18:25 +02:00
|
|
|
const alias = [
|
2019-04-16 12:54:16 +02:00
|
|
|
'object-assign',
|
|
|
|
'whatwg-fetch',
|
2019-04-24 18:18:25 +02:00
|
|
|
'@babel/polyfill',
|
|
|
|
'classnames',
|
|
|
|
// 'codemirror',
|
|
|
|
// 'crypto',
|
|
|
|
'history',
|
|
|
|
'hoist-non-react-statics',
|
|
|
|
'immutable',
|
|
|
|
// 'intl',
|
|
|
|
'invariant',
|
|
|
|
'moment',
|
|
|
|
// 'prop-types',
|
|
|
|
'react',
|
|
|
|
'react-copy-to-clipboard',
|
|
|
|
// 'react-datetime',
|
|
|
|
'react-dnd',
|
|
|
|
'react-dnd-html5-backend',
|
|
|
|
'react-dom',
|
|
|
|
'react-ga',
|
|
|
|
'react-helmet',
|
|
|
|
// 'react-intl',
|
|
|
|
'react-loadable',
|
|
|
|
'react-redux',
|
|
|
|
'react-router',
|
|
|
|
'react-router-dom',
|
|
|
|
// 'react-select',
|
|
|
|
'react-transition-group',
|
|
|
|
'reactstrap',
|
|
|
|
'redux',
|
|
|
|
'redux-immutable',
|
|
|
|
// 'redux-saga',
|
|
|
|
'remove-markdown',
|
|
|
|
'reselect',
|
|
|
|
// 'strapi-helper-plugin',
|
|
|
|
'styled-components',
|
|
|
|
// 'video-react',
|
|
|
|
];
|
2019-04-16 12:54:16 +02:00
|
|
|
|
2019-04-24 18:18:25 +02:00
|
|
|
// module.exports = {};
|
2019-04-16 12:54:16 +02:00
|
|
|
|
2019-04-24 18:18:25 +02:00
|
|
|
module.exports = alias.reduce((acc, curr) => {
|
|
|
|
acc[curr] = require.resolve(curr);
|
2019-04-24 14:32:20 +02:00
|
|
|
|
2019-04-24 18:18:25 +02:00
|
|
|
return acc;
|
|
|
|
}, {});
|