Skip to content

refactor: update package.json import method for compatibility with no…#16

Open
beilunyang wants to merge 1 commit intoleochen-g:mainfrom
beilunyang:fix/node22
Open

refactor: update package.json import method for compatibility with no…#16
beilunyang wants to merge 1 commit intoleochen-g:mainfrom
beilunyang:fix/node22

Conversation

@beilunyang
Copy link

Node22 版本以上不再支持 assert 进行导入断言,需要使用 with
为了更好的兼容性,改成 fs.readFile 方式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant