Skip to content

Conversation

@maartenbreddels
Copy link
Collaborator

because we 'eval' everything from the first curly brace, but that curly brace in a comment. This is common when you want to add type checking using jsdoc, which would look like this:

/**
 * @typedef {import('@/types/foo').Bar} Bar
 */

We now evaluate more like a CommonJS module, but fall back to the old
behaviour.

@maartenbreddels maartenbreddels force-pushed the fix_script_with_curly_before_component branch 3 times, most recently from a93680d to 76e4b01 Compare September 9, 2025 19:30
Copy link
Contributor

@iisakkirotko iisakkirotko left a comment

Choose a reason for hiding this comment

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

👍

@maartenbreddels maartenbreddels force-pushed the fix_script_with_curly_before_component branch 2 times, most recently from d946393 to cfc6553 Compare September 10, 2025 10:46
because we 'eval' everything from the first curly brace, but
that curly brace in a comment. This is common when you want to add
type checking using jsdoc, which would look like this:
```
/**
 * @typedef {import('@/types/foo').Bar} Bar
 */

We now evaluate more like a CommonJS module, but fall back to the old
behaviour.
```
@maartenbreddels maartenbreddels force-pushed the fix_script_with_curly_before_component branch from cfc6553 to 93820e7 Compare September 10, 2025 11:01
@maartenbreddels maartenbreddels merged commit e746b53 into master Sep 10, 2025
9 checks passed
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.

4 participants