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

esbuild is not a function #23

Closed
Tahul opened this issue Nov 18, 2021 · 3 comments
Closed

esbuild is not a function #23

Tahul opened this issue Nov 18, 2021 · 3 comments

Comments

@Tahul
Copy link

Tahul commented Nov 18, 2021

If you generate a new repository using unbuild, and some parts of your build relies on rollup, you get a TypeError breaking the build.

Trace:

$ unbuild
ℹ  Building unbuild-issue
Error building /Users/tahul/Projets/issues/unbuild-issue: TypeError: esbuild is not a function
TypeError: esbuild is not a function
    at getRollupOptions (file:///Users/tahul/Projets/issues/unbuild-issue/node_modules/unbuild/dist/chunks/build.mjs:231:7)
    at rollupBuild (file:///Users/tahul/Projets/issues/unbuild-issue/node_modules/unbuild/dist/chunks/build.mjs:141:25)
    at build (file:///Users/tahul/Projets/issues/unbuild-issue/node_modules/unbuild/dist/chunks/build.mjs:359:9)
    at async main (file:///Users/tahul/Projets/issues/unbuild-issue/node_modules/unbuild/dist/cli.mjs:31:3)

Reproduction: https://github.com/Tahul/unbuild-issue

Thanks for your help 🙏

@atinux
Copy link
Member

atinux commented Nov 18, 2021

I can confirm on https://glitch.com/edit/#!/misty-universal-outrigger

Open Terminal > npm run build

@pi0
Copy link
Member

pi0 commented Nov 18, 2021

Seems regression of rollup-plugin-esbuild

@pi0 pi0 closed this as completed in e88fc72 Nov 18, 2021
@pi0
Copy link
Member

pi0 commented Nov 18, 2021

Fixed in unbuild@0.5.12

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

No branches or pull requests

3 participants