We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00a79ec commit b1a8e58Copy full SHA for b1a8e58
packages/plugin-legacy/src/index.ts
@@ -797,10 +797,10 @@ function wrapIIFEBabelPlugin(): BabelPlugin {
797
}
798
799
export const cspHashes = [
800
- createHash('sha256').update(safari10NoModuleFix).digest('base64'),
801
- createHash('sha256').update(systemJSInlineCode).digest('base64'),
802
- createHash('sha256').update(detectModernBrowserCode).digest('base64'),
803
- createHash('sha256').update(dynamicFallbackInlineCode).digest('base64'),
804
-]
+ safari10NoModuleFix,
+ systemJSInlineCode,
+ detectModernBrowserCode,
+ dynamicFallbackInlineCode,
+].map((i) => createHash('sha256').update(i).digest('base64'))
805
806
export default viteLegacyPlugin
0 commit comments