芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/strapi/lib/load/require-file-parse.js
'use strict'; const path = require('path'); const { templateConfiguration } = require('strapi-utils'); /** * Requires a file and eval expression if it is a json * @param {string} filePath - file path */ module.exports = filePath => { if (path.extname(filePath) === '.json') { return templateConfiguration(require(filePath)); } return require(filePath); };