mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
fix: fix build && adapte for bugs in NeteasyCloudMusicAPI
This commit is contained in:
parent
1a2c3e2843
commit
a18e093d4a
5 changed files with 4439 additions and 4027 deletions
|
|
@ -63,6 +63,16 @@ module.exports = {
|
|||
.loader('node-loader')
|
||||
.end();
|
||||
|
||||
config.module
|
||||
.rule('webpack4_es_fallback')
|
||||
.test(/\.js$/)
|
||||
.include.add(/node_modules/)
|
||||
.end()
|
||||
.use('esbuild-loader')
|
||||
.loader('esbuild-loader')
|
||||
.options({ target: 'es2015', format: "cjs" })
|
||||
.end();
|
||||
|
||||
// LimitChunkCountPlugin 可以通过合并块来对块进行后期处理。用以解决 chunk 包太多的问题
|
||||
config.plugin('chunkPlugin').use(webpack.optimize.LimitChunkCountPlugin, [
|
||||
{
|
||||
|
|
@ -169,6 +179,16 @@ module.exports = {
|
|||
'jsbi',
|
||||
path.join(__dirname, 'node_modules/jsbi/dist/jsbi-cjs.js')
|
||||
);
|
||||
|
||||
config.module
|
||||
.rule('webpack4_es_fallback')
|
||||
.test(/\.js$/)
|
||||
.include.add(/node_modules/)
|
||||
.end()
|
||||
.use('esbuild-loader')
|
||||
.loader('esbuild-loader')
|
||||
.options({ target: 'es2015', format: "cjs" })
|
||||
.end();
|
||||
},
|
||||
// 渲染线程的配置文件
|
||||
chainWebpackRendererProcess: config => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue