Fix: Fix build error and /tmp/anonymous_token not exist. #2187
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
修复打包 node 侧代码时,因第三方依赖使用了新 ES 语法, webpack版本过低不识别的问题。(通过将 node_modules 过一遍 esbuild 来缓解,但如果继续维护旧播放器,建议升级 webpack)
修复直接使用 NeteaseCloudMusicApi/server 未使用 /main.js 导致一些必要文件未被创建的问题。(另,NeteaseCloudMusicApi 的 generateConfig.js 也有问题,其从 main.js 引入了 register_anonimous,但 register_anonimous 并不存在,因此直接拷贝必要代码到项目中使用)
Fixed the issue where the webpack version was too low and not recognized due to the new ES syntax used in third-party dependencies. (Solved by passing node_modules through esbuild, but if maintenance continues, it is recommended to upgrade webpack)
Fixed an issue where using NeteaseCloudMusicApi/server directly without using /main.js resulted in some necessary files not being created. (In addition, NeteaseCloudMusicApi's generateConfig.js also has problems. It introduces register_anonimous from main.js, but register_anonimous does not exist, so copy the necessary code directly to the project for use)