/** * 在 pages / subpackage 下各页根 后插入 (无则插入) * 需配合 easycom 或各页 import */ const fs = require('fs') const path = require('path') const ROOT = path.resolve(__dirname, '..') const DIRS = [path.join(ROOT, 'pages'), path.join(ROOT, 'subpackage')] // 从