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

fix: manualChunksの指定が誤っていてビルド再現性がなかった #4150

Merged

Conversation

sapphi-red
Copy link
Member

No description provided.

Copy link

// hljsは適当に二つに分割する
const t = 'node_modules/highlight.js/lib/languages/'
const firstLetter = id.slice(id.indexOf(t) + t.length)[0]
Copy link
Member Author

Choose a reason for hiding this comment

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

tidに含まれていないときid.indexOf(t)-1なので、t.length - 1番目の文字を見ていた

Copy link

codecov bot commented Nov 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (57da490) 86.35% compared to head (ba4cef7) 86.35%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4150   +/-   ##
=======================================
  Coverage   86.35%   86.35%           
=======================================
  Files          66       66           
  Lines        4719     4719           
  Branches      564      564           
=======================================
  Hits         4075     4075           
  Misses        638      638           
  Partials        6        6           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@nokhnaton nokhnaton left a comment

Choose a reason for hiding this comment

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

ありがとうございます!よさそうです!

Copy link
Member

@zer0-star zer0-star left a comment

Choose a reason for hiding this comment

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

良さそうです。ビルド後hljs*が互いに依存してないことも確認できました

@nokhnaton nokhnaton merged commit 9a2a5a1 into master Nov 15, 2023
11 checks passed
@nokhnaton nokhnaton deleted the fix/non-reproducible-build-due-to-incorrect-manual-chunks branch November 15, 2023 13:51
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.

None yet

3 participants