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

[@rollup/plugin-swc] leads to unusable bundle in combination with [@rollup/plugin-commonjs] and [@rollup/plugin-node-resolve] #1736

Open
htho opened this issue Jun 10, 2024 · 0 comments

Comments

@htho
Copy link

htho commented Jun 10, 2024

Expected Behavior

❯ npm run build
❯ node dist/main.js
e

Actual Behavior

❯ npm run build
❯ node dist/main.js
Error: $$4 is not a function
    at _evaluate (https://rolluprepro2kplmm-cpe3.w-corp-staticblitz.com/blitz.c3e5e364.js:40:786736)

Node.js 18.20.3

Additional Information

The alternative build with an alternative source file produces correct results.

❯ npm run build:alt
❯ node dist/main-alt.js
e

src/main-alt.js already includes the imports that are added by swc. Therefore swc is skipped.
.

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

1 participant