Skip to content

fix: limited batch splitter #41

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

Merged
merged 1 commit into from
May 2, 2025
Merged

Conversation

Teages
Copy link
Collaborator

@Teages Teages commented May 2, 2025

resolve #40

I think a random 9-digit number is enough and it is more stable

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR modifies the batch splitter delimiter generation in the JavaScript snippet transformation function by replacing Math.random() with a 9-digit random number generator for improved stability.

  • Replaces the simple random number with a more controlled 9-digit random value
  • Updates the template literal generating the splitter string

Copy link

pkg-pr-new bot commented May 2, 2025

Open in StackBlitz

npm i https://pkg.pr.new/vue-sfc-transformer@41

commit: 9175211

@Teages Teages merged commit 22c308c into main May 2, 2025
4 checks passed
@Teages Teages deleted the fix/random-failed-by-random-number branch May 2, 2025 01:52
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.

Build randomly fails with [vue-sfc-transformer] Failed to load the template block in /path/to/component.vue
1 participant