mirror of
https://github.com/strapi/strapi.git
synced 2025-07-19 15:06:11 +00:00
18 lines
335 B
JavaScript
18 lines
335 B
JavaScript
const path = require('path');
|
|
const alias = [
|
|
'core-js',
|
|
'create-react-context',
|
|
'invariant',
|
|
'hoist-non-react-statics',
|
|
'object-assign',
|
|
'react-popper',
|
|
'reactstrap',
|
|
'whatwg-fetch',
|
|
];
|
|
|
|
module.exports = alias.reduce((acc, curr) => {
|
|
acc[curr] = path.resolve(__dirname, 'node_modules', curr);
|
|
|
|
return acc;
|
|
}, {});
|