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

16 lines
330 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
]);
2019-04-24 14:32:20 +02:00
module.exports = {};
2019-04-24 14:32:20 +02:00
// module.exports = alias.reduce((acc, curr) => {
// acc[curr] = path.resolve(__dirname, 'node_modules', curr);
// return acc;
// }, {});