question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot support @rollup/plugin-babel

See original GitHub issue

Describe the bug

babel tranform es6 is bad, look this: image

that is right in rollup: image

Reproduction

https://stackblitz.com/edit/vitejs-vite-xcsg9e

System Info

System:
    OS: macOS 12.5
    CPU: (8) x64 Apple M1 Pro
    Memory: 66.13 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 14.19.1 - /usr/local/bin/node
    Yarn: 1.22.18 - /usr/local/bin/yarn
    npm: 8.13.2 - /opt/homebrew/bin/npm
  Browsers:
    Firefox: 103.0.2
    Safari: 15.6

Used Package Manager

yarn

Logs

No response

Validations

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
sapphi-redcommented, Aug 28, 2022

For plugin-legacy not supporting library mode, see #1639.

@zjjjjjjjjjjd Please make it clear what is expected. But I believe you’ll need to use getBabelOutputPlugin instead. https://github.com/rollup/plugins/blob/master/packages/babel/README.md#running-babel-on-the-generated-code

2reactions
zjjjjjjjjjjdcommented, Aug 22, 2022

I’m not particularly clear about your needs, but I think can help you.plugin-legacy

plugin-legacy cannot support library mode 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

@rollup/plugin-babel - npm
@rollup/plugin-babel. A Rollup plugin for seamless integration between Rollup and Babel. Why? If you're using Babel to transpile your ...
Read more >
How to Bundle JavaScript With Rollup — Step-by-Step Tutorial
To make this actually do stuff, we need to update rollup.config.js . Inside, we import the Babel plugin, then add it to a...
Read more >
rollup-plugin-babel | Yarn - Package Manager
This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel. Seamless integration between Rollup and Babel.
Read more >
Rollup-plugin-babel - npm.io
The following applies to Babel 6 only. If you're using Babel 5, do npm i -D rollup-plugin-babel@1 , as version 2 and above...
Read more >
rollup.js
For interoperability, Rollup also supports loading configuration files from ... Imported values cannot be reassigned, though imported objects and arrays can ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found