diff --git a/ace-loader/src/genAbc-plugin.js b/ace-loader/src/genAbc-plugin.js index 9d458e72e11b000c34221129c22bd44c53ad4c81..c76bb158d524f2e54200ce2b57346603eafb6f3c 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); }