mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +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/
|
||||
module.exports = {
|
||||
...aliasExactMatch.reduce((acc, name) => {
|
||||
acc[`${name}$`] = require.resolve(name);
|
||||
acc[`${name}$`] = path.resolve(__dirname, '..', '..', '..', 'node_modules', name);
|
||||
return acc;
|
||||
}, {}),
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user