in common/buildCode.js [374:401]
module.exports.buildExampleCode = function (
jsCode,
deps,
{
// If enable minimal import
minimal,
// If is ESM module or CommonJS module
// Force to be true in ts mode or minimal mode.
esm = true,
// If use legacy minimal import, like:
// import 'echarts/lib/chart/bar';
// Only available when minimal is true.
legacy,
// If is ts code
ts,
// Theme
theme,
renderer,
useDirtyRect,
ROOT_PATH,
CDN_PATH,
// Other imports code code string
// For example
// `import 'echarts-liquidfill'`
extraImports,
// language
isZHLang
}