mirror of
https://github.com/strapi/strapi.git
synced 2025-07-19 15:06:11 +00:00
51 lines
919 B
JavaScript
51 lines
919 B
JavaScript
const path = require('path');
|
|
const pkg = require('./package.json');
|
|
|
|
const alias = [
|
|
'object-assign',
|
|
'whatwg-fetch',
|
|
'@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',
|
|
];
|
|
|
|
// module.exports = {};
|
|
|
|
module.exports = alias.reduce((acc, curr) => {
|
|
acc[curr] = require.resolve(curr);
|
|
|
|
return acc;
|
|
}, {});
|