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(json): don't json.stringify arrays #18541

Merged
merged 7 commits into from
Nov 1, 2024
Merged

Conversation

ghiscoding
Copy link
Contributor

Description

fixes #18533

importing an array from a JSON file shouldn't be converted to object and we shouldn't need to stringify them

Copy link
Member

@sapphi-red sapphi-red left a comment

Choose a reason for hiding this comment

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

Thank you for the PR!

packages/vite/src/node/plugins/json.ts Outdated Show resolved Hide resolved
@sapphi-red sapphi-red added p4-important Violate documented behavior or significantly improves performance (priority) regression The issue only appears after a new release labels Nov 1, 2024
@sapphi-red sapphi-red added this to the 6.0 milestone Nov 1, 2024
sapphi-red
sapphi-red previously approved these changes Nov 1, 2024
@bluwy bluwy changed the title fix(json): don't json.stringify arrays, fixes #18533 fix(json): don't json.stringify arrays Nov 1, 2024
@bluwy bluwy enabled auto-merge (squash) November 1, 2024 03:50
@bluwy bluwy merged commit fa50b03 into vitejs:main Nov 1, 2024
16 checks passed
@ghiscoding ghiscoding deleted the patch-1 branch November 4, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p4-important Violate documented behavior or significantly improves performance (priority) regression The issue only appears after a new release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6.0.0-beta.x regression, array of data imported as JSON file get transformed to an object, why?
3 participants