mirror of
https://github.com/strapi/strapi.git
synced 2025-09-03 05:39:36 +00:00
Fix alias
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
7a19c3b425
commit
d44bc98e20
@ -1,11 +1,16 @@
|
||||
const path = require('path');
|
||||
|
||||
const alias = [
|
||||
'object-assign',
|
||||
'whatwg-fetch',
|
||||
'@babel/polyfill',
|
||||
'@fortawesome/fontawesome-svg-core',
|
||||
'@fortawesome/free-solid-svg-icons',
|
||||
'@buffetjs/core',
|
||||
'@buffetjs/custom',
|
||||
'@buffetjs/custom',
|
||||
'@buffetjs/utils',
|
||||
'@buffetjs/icons',
|
||||
'@buffetjs/hooks',
|
||||
'classnames',
|
||||
'history',
|
||||
'hoist-non-react-statics',
|
||||
@ -40,8 +45,7 @@ const alias = [
|
||||
|
||||
module.exports = alias.reduce(
|
||||
(acc, curr) => {
|
||||
acc[curr] = require.resolve(curr);
|
||||
|
||||
acc[`${curr}$`] = require.resolve(curr);
|
||||
return acc;
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user