Skip to content

Add a failing test for json import in js file#173

Open
orgads wants to merge 1 commit intounplugin:mainfrom
orgads:json-import
Open

Add a failing test for json import in js file#173
orgads wants to merge 1 commit intounplugin:mainfrom
orgads:json-import

Conversation

@orgads
Copy link
Copy Markdown
Contributor

@orgads orgads commented May 19, 2025

Description

Importing json files from js fails to parse.

Linked Issues

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

plugins: [
swc.rollup(),
],
})).rejects.toThrow(' x Expected \';\', got \'with\'')
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This should be changed to resolves of course.

@orgads
Copy link
Copy Markdown
Contributor Author

orgads commented May 19, 2025

Setting importAttributes: true, in jsc.parser solves this. Does it make sense to add an option for that?

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.

1 participant