strapi-cms / src /admin /webpack.config.js
kenken999
fix: add webpack config override to resolve punycode polyfill for Strapi admin panel build
e43cee9
raw
history blame contribute delete
327 Bytes
'use strict';
// Fix: webpack5 does not include Node.js core polyfills by default
// markdown-it requires 'punycode' which is a deprecated Node.js built-in
module.exports = (config) => {
config.resolve.fallback = {
...(config.resolve.fallback || {}),
punycode: require.resolve('punycode/'),
};
return config;
};