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
Regression in v1.12.0 release #2859
Comments
I found the original Sapper example to be a much less intimidating repro. I've been digging into it, and I'm at the point now where I have no idea how this used to work with 1.11. I've commented here in case this is helpful to someone. I'm not sure what I'm missing. |
The regression seems to happen because of a breaking change in this line: f4105d4#diff-000123d2bbebc4e4c72a084a87915a34R79 Sapper deals with css by creating its own css chunks, adding a transform that captures the content and returning an empty string to rollup: Both changing the rollup comparison or returning a space from sapper's transform fixes the bundling issue. |
Good hunting @mrkishi - Yeah that sounds definitely plausible. That also explains why I couldn't find anything in rollup-plugin-svelte - because it's handled in Sapper itself. I agree that returning an empty string from a transformer shouldn't mean the same thing as returning null. |
Thanks so much everyone here for creating reproductions and digging into this! I will look into why I made the change and try to fix it as soon as possible. |
(possibly I tried to capture some |
Potential fix at #2861 |
Amazing! Thanks all 💯 |
v1.12.0
Linux max 5.0.0-15-generic #16-Ubuntu SMP Mon May 6 17:41:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
v10.15.3
,v11.15.0
, andv12.2.0
How Do We Reproduce?
yarn run build
oryarn run dev
, both break in different ways 😬Both
npm
andyarn
produce the same result.I'll to create a more minimal repo in a moment and try dig a little deeper into what might be going wrong.
Expected Behavior
Build runs to completion as in rollup
v1.11.3
.Actual Behavior
Note: This is from the project mentioned above which uses a bunch of rollup plugins so the following might not be very concise. Will post back once I can repro with a minimal example.
`yarn run dev` (expand me):
`yarn run build` (expand me):
The text was updated successfully, but these errors were encountered: