From bc00d6f295c86ba3359f9cb6d667c4bd063cb0d4 Mon Sep 17 00:00:00 2001 From: Luk Date: Sun, 4 Aug 2024 20:02:46 +0800 Subject: [PATCH] replace `export default` with `module.exports` so that it can be used in server side --- unitool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unitool.js b/unitool.js index 45d8b91..5c853ae 100644 --- a/unitool.js +++ b/unitool.js @@ -12,7 +12,7 @@ const my = { const crypto = require('crypto') const path = require('path') -export default { +module.exports = { // 用直观的色彩,代替语义化的类型: // uView 中大量组件都使用 type 来设置颜色,而 uni-ui 中只有少量组件用到。 c2t: {