diff --git a/src/utils.ts b/src/utils.ts index 81fb90b..7ff1a38 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -301,7 +301,7 @@ export function buildOutputChunkWithCssInjectionCode( cssInjectionCode: string, topExecutionPriorityFlag: boolean ): string { - const appCode = jsAssetCode.replaceAll(/\/\*\s*empty css\s*\*\//g, ''); + const appCode = jsAssetCode.replace(/\/\*\s*empty css\s*\*\//g, ''); jsAssetCode = topExecutionPriorityFlag ? '' : appCode; jsAssetCode += cssInjectionCode; jsAssetCode += !topExecutionPriorityFlag ? '' : appCode;