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
linaria@4.0.0 broke re-exports #1018
Comments
* fix(babel): apply only necessary transformations (#1018) * fix(shaker): remove ObjectMethod if its body is removed
Hi @nstepien! |
@Anber Thanks, both work fine now! 4.1.0 is breaking Jest now, not sure if 4.0.0 was working in Jest before.
Same branch as before in react-data-grid. |
Do you use babel-jest transformer? |
https://github.com/adazzle/react-data-grid/blob/d11a5cc70615485fd94398a517d4f4e5cab6f088/jest.config.js |
I can't say right now why it was ok with 3.0, but you need something that can replace
|
I get the same problem with this config. |
Hm. I tried with this config, and it worked, but after your message it stopped :) Could you please open a new issue? I'll try to figure out what has happened. |
Without changing anything the tests worked fine on the first try, but stopped working when I ran the tests with the cache disabled with Anyway I've opened a new issue here: #1021 |
Environment
Description
We use linaria@3 in react-data-grid: https://github.com/adazzle/react-data-grid
Trying to upgrade to linaria@4 broke webpack/rollup: adazzle/react-data-grid#2962
https://github.com/adazzle/react-data-grid/blob/d11a5cc70615485fd94398a517d4f4e5cab6f088/src/utils/styleUtils.ts
https://github.com/adazzle/react-data-grid/blob/d11a5cc70615485fd94398a517d4f4e5cab6f088/src/style/index.ts
https://github.com/adazzle/react-data-grid/blob/d11a5cc70615485fd94398a517d4f4e5cab6f088/src/style/cell.ts
style/index.ts
re-exports styles fromstyle/cell.ts
, this works fine with linaria@3 but not with linaria@4 as rollup cannot find the re-exports anymore.Not sure what the webpack error is about.
Reproducible Demo
adazzle/react-data-grid#2962
You can checkout this branch then run these commands locally:
The text was updated successfully, but these errors were encountered: