Skip to content

Commit

Permalink
chore: remove async js chunk inject
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyuang committed Oct 3, 2024
1 parent 1b32cc4 commit a95507e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/server/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const getAsyncCssChunk = async (ctx: ISSRContext, webpackChunkName: strin
}
export const getAsyncJsChunk = async (ctx: ISSRContext, webpackChunkName: string, config: IConfig): Promise<string[]> => {
const { jsOrder, extraJsOrder, jsOrderPriority } = config
const combineOrder = jsOrder.concat([...nomalrizeOrder(extraJsOrder, ctx), ...await addAsyncChunk(webpackChunkName, config, 'js')])
const combineOrder = jsOrder.concat([...nomalrizeOrder(extraJsOrder, ctx)])
if (jsOrderPriority) {
const priority = typeof jsOrderPriority === 'function' ? jsOrderPriority({ chunkName: webpackChunkName }) : jsOrderPriority
combineOrder.sort((a, b) => {
Expand Down

0 comments on commit a95507e

Please sign in to comment.