fix:所有模块导入/导出的兼容性问题

This commit is contained in:
初衷
2025-08-13 19:09:01 +08:00
parent 3d7594c64c
commit 9d9de6760a
16 changed files with 23 additions and 64 deletions

View File

@@ -393,8 +393,4 @@ D1Database.prototype.list = function(options) {
};
// 导出构造函数
if (typeof module !== 'undefined' && module.exports) {
module.exports = { D1Database: D1Database };
} else if (typeof exports !== 'undefined') {
exports.D1Database = D1Database;
}
export { D1Database };