pdfmake.js
and xlsx.js
are included by AmCharts
They are fetched by browsers dynamically and only when needed - so the only downside is increased build time. If you are sure you do not need/use these - you can disable them through vue.config.js
:
// vue.config.js
module.exports = {
chainWebpack: config =>
{
config.externals = function (context, request, callback)
{
if (/xlsx|canvg|pdfmake/.test(request))
{
return callback(null, "commonjs " + request);
}
callback();
}
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…