diff --git a/build-module-v4.js b/build-module-v4.js index eca44fc7..97921208 100644 --- a/build-module-v4.js +++ b/build-module-v4.js @@ -86,7 +86,7 @@ module.exports = (options) => { function wrap(main) { var utils = fs.readFileSync(`${libPath}/V4/utils.js`, 'utf8').split('\n').join('\n '); - var init = fs.readFileSync(`${libPath}/V4/utils-init.js`, 'utf8').split('\n').join('\n '); + var init = options.autoInitDataAPI === false ? '' : options.noInitDataAPI ? '' : fs.readFileSync(`${libPath}/V4/utils-init.js`, 'utf8').split('\n').join('\n '); main = main.split('\n').join('\n '); // Initialize arrays: // Arrays will be used in the template literal below diff --git a/build-module.js b/build-module.js index bc538a4d..b730c67b 100644 --- a/build-module.js +++ b/build-module.js @@ -86,7 +86,7 @@ module.exports = (options) => { function wrap(main) { var utils = fs.readFileSync(`${libPath}/V3/utils.js`, 'utf8').split('\n').join('\n '); - var init = fs.readFileSync(`${libPath}/V3/utils-init.js`, 'utf8').split('\n').join('\n '); + var init = options.autoInitDataAPI === false ? '' : fs.readFileSync(`${libPath}/V3/utils-init.js`, 'utf8').split('\n').join('\n '); main = main.split('\n').join('\n '); // Initialize arrays: // Arrays will be used in the template literal below