Skip to content

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 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

@pkg-pr-new
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

2 participants