diff --git a/src/index.ts b/src/index.ts index ed24c5304..862cc006e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -76,6 +76,7 @@ export default function loader( const { mode, target, + request, sourceMap, rootContext, resourcePath, @@ -240,6 +241,9 @@ export default function loader( code += `\nscript.__file = ${JSON.stringify(path.basename(resourcePath))}` } + // set modlue indentifier for SSR async components preload + code += `\nscript.__moduleIdentifier =${JSON.stringify(hash(request))}` + // custom blocks if (descriptor.customBlocks && descriptor.customBlocks.length) { code += `\n/* custom blocks */\n`
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: