mirror of
https://github.com/strapi/strapi.git
synced 2025-09-06 07:12:26 +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 path = require('path');
|
||||||
|
|
||||||
const alias = [
|
const alias = [
|
||||||
'object-assign',
|
'object-assign',
|
||||||
'whatwg-fetch',
|
'whatwg-fetch',
|
||||||
'@babel/polyfill',
|
'@babel/polyfill',
|
||||||
'@fortawesome/fontawesome-svg-core',
|
'@fortawesome/fontawesome-svg-core',
|
||||||
'@fortawesome/free-solid-svg-icons',
|
'@fortawesome/free-solid-svg-icons',
|
||||||
|
'@buffetjs/core',
|
||||||
|
'@buffetjs/custom',
|
||||||
|
'@buffetjs/custom',
|
||||||
|
'@buffetjs/utils',
|
||||||
|
'@buffetjs/icons',
|
||||||
|
'@buffetjs/hooks',
|
||||||
'classnames',
|
'classnames',
|
||||||
'history',
|
'history',
|
||||||
'hoist-non-react-statics',
|
'hoist-non-react-statics',
|
||||||
@ -40,8 +45,7 @@ const alias = [
|
|||||||
|
|
||||||
module.exports = alias.reduce(
|
module.exports = alias.reduce(
|
||||||
(acc, curr) => {
|
(acc, curr) => {
|
||||||
acc[curr] = require.resolve(curr);
|
acc[`${curr}$`] = require.resolve(curr);
|
||||||
|
|
||||||
return acc;
|
return acc;
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user