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: require(...) is not a function #28

Merged
merged 1 commit into from
May 27, 2024
Merged

fix: require(...) is not a function #28

merged 1 commit into from
May 27, 2024

Conversation

RuSenLi
Copy link
Contributor

@RuSenLi RuSenLi commented May 14, 2024

Description

Currently cannot import the plugin into a CJS file because the module is exported as module.exports.default rather than simply module.exports.
cjs-error

Linked Issues

Related Discussions: egoist/tsup#572 (comment)

Additional context

Here's an example of a successful repair: fix-cjs-example

Copy link

stackblitz bot commented May 14, 2024

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

Copy link

socket-security bot commented May 14, 2024

No dependency changes detected. Learn more about Socket for GitHub ↗︎

👍 No dependency changes detected in pull request

@antfu antfu merged commit 78f88c0 into unplugin:main May 27, 2024
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.

2 participants