diff --git a/ace-loader/src/genAbc-plugin.js b/ace-loader/src/genAbc-plugin.js index 42d525e90ab04afa18ad301ba4182f285284d6ac..ebb67f10ebb884498e76c09a8be54dfc46687379 100644 --- a/ace-loader/src/genAbc-plugin.js +++ b/ace-loader/src/genAbc-plugin.js @@ -509,6 +509,11 @@ function initAbcEnv() { if (isDebug) { args.push('--debug-info'); } + if (process.env.minPlatformVersion && process.env.minPlatformVersion !== 'undefined' && + process.env.minPlatformVersion !== '8') { + args.push('--target-api-version'); + args.push(process.env.minPlatformVersion); + } } else { console.debug(red, `ERROR: please set panda module`, reset); }