feat: 升级midway,支持esm

This commit is contained in:
xiaojunnuo
2024-07-15 00:30:33 +08:00
parent 970c7fd8a0
commit 485e603b51
246 changed files with 3821 additions and 1532 deletions
@@ -1,6 +1,6 @@
import { Inject, Provide } from '@midwayjs/decorator';
import { Inject, Provide } from '@midwayjs/core';
import { CacheManager } from '@midwayjs/cache';
const svgCaptcha = require('svg-captcha');
import svgCaptcha from 'svg-captcha';
// {data: '<svg.../svg>', text: 'abcd'}
/**