Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support nonce #101

Merged
merged 2 commits into from
Mar 27, 2023
Merged

feat: support nonce #101

merged 2 commits into from
Mar 27, 2023

Conversation

zombieJ
Copy link
Member

@zombieJ zombieJ commented Mar 27, 2023

@github-actions
Copy link

github-actions bot commented Mar 27, 2023

😭 Deploy PR Preview 3a9b922 failed. Build logs

🤖 By surge-preview

@@ -378,11 +379,17 @@ export default function useStyleRegister(
const styleId = uniqueHash(fullPath, styleStr);

if (isMergedClientSide) {
const style = updateCSS(styleStr, styleId, {
const mergedCSSConfig: Parameters<typeof updateCSS>[2] = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 [2] 有点魔法。。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

很魔法

@zombieJ zombieJ merged commit ebd79ae into master Mar 27, 2023
@zombieJ zombieJ deleted the support-nonce branch March 27, 2023 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants