mirror of
https://github.com/strapi/strapi.git
synced 2025-11-13 00:29:51 +00:00
chore: use path.resolve instead of require
because this assumes we must always use CJS
This commit is contained in:
parent
5055296e4a
commit
137f33dbfa
@ -40,7 +40,7 @@ const aliasExactMatch = [
|
|||||||
// See https://webpack.js.org/configuration/resolve/
|
// See https://webpack.js.org/configuration/resolve/
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...aliasExactMatch.reduce((acc, name) => {
|
...aliasExactMatch.reduce((acc, name) => {
|
||||||
acc[`${name}$`] = require.resolve(name);
|
acc[`${name}$`] = path.resolve(__dirname, '..', '..', '..', 'node_modules', name);
|
||||||
return acc;
|
return acc;
|
||||||
}, {}),
|
}, {}),
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user