strapi/packages/strapi-admin/webpack.alias.js

14 lines
296 B
JavaScript
Raw Normal View History

const path = require('path');
2019-04-16 16:55:53 +02:00
const pkg = require('./package.json');
const alias = Object.keys(pkg.dependencies).concat([
'object-assign',
'whatwg-fetch',
2019-04-16 16:55:53 +02:00
]);
module.exports = alias.reduce((acc, curr) => {
acc[curr] = path.resolve(__dirname, 'node_modules', curr);
return acc;
}, {});