Skip to content

Conversation

amcgavin
Copy link

@amcgavin amcgavin commented Jul 3, 2025

This PR aimed to remove require in favour of import.

A side effect of this was that require no longer works correctly inside templates because it is now an async function. Since the template is rendered synchronously, it is no longer possible to import anything from inside a template.

This PR restores that functionality, which was introduced in version 4.0.4.

Thanks!

Copy link

changeset-bot bot commented Jul 3, 2025

⚠️ No Changeset found

Latest commit: 3ff5247

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@amcgavin
Copy link
Author

amcgavin commented Jul 3, 2025

I'm not sure if this warrants a minor version bump or if patch is acceptable

@amcgavin
Copy link
Author

@smorimoto could you please have a look when you get the chance?

@smorimoto smorimoto requested a review from Copilot July 11, 2025 06:37
Copilot

This comment was marked as outdated.

@smorimoto
Copy link
Collaborator

bugbot run

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no bugs!


Bugbot free trial expires on September 2, 2025
Learn more in the Cursor dashboard.

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.

2 participants