Comments (6)
Thanks! Yes a patch would be welcome, but unfortunately I cannot guarantee when I may have a chance to understand and review it. And adding a test case would be especially helpful.
I think this plugin was made to work with the original rollup-plugin-terser, looks like newer @rollup/plugin-terser
is now using terser v5.
from rollup-plugin-size-snapshot.
Possibly related: TrySound#61
Most important for me would be a simple reproduction that we can keep in a test case.
from rollup-plugin-size-snapshot.
Thanks for PR #20, reviewing it now.
I discovered there could also be issues if the source has only comments or blank lines, see #21.
I think this will need me to drop Node.js pre-14 support, see #18, will try to do this soon.
I am thinking that the issue with error handling could continue intermittently with the lag time between new ES features coming and terser updates, may have to keep #19 open for a while.
from rollup-plugin-size-snapshot.
Thanks for getting back so promptly @brodybits and apologies for the delay in response! Really appreciate you updating with a way to know if Terser is failing, since it on our path to fixing build errors we are seeing in our projects. I talked to my team and we have time and I am happy to write a test case once we sort out a way of replicating. We are still looking into the reason it is failing, but you can see the failure here.
from rollup-plugin-size-snapshot.
you can see the failure here.
zendeskgarden/react-containers#493 ... namely this commit: zendeskgarden/react-containers@1cbd6f6
I will try this myself as well.
from rollup-plugin-size-snapshot.
@brodybits Thank you! It looks like optional chaining was the culprit behind the failure (here), and it does seem to be supported in v5.2.0 of Terser. Upgrading would probably be the best option here - if you don't oppose, I'll raise a PR with the version upgrade accompanied by tests.
from rollup-plugin-size-snapshot.
Related Issues (14)
- RFC: retire patch-v0.7.x branch & Rollup 0.x support HOT 1
- 0.14.0 minor release: drop Node.js pre-14 support, etc. HOT 1
- terser error - needs reproduction
- issues with blank source or only comments
- npm version v0.14.0 is missing contents
- Support for Rollup 3 HOT 1
- Support & test with multiple versions of Rollup
- Update dependencies & devDependencies
- Update GItHub CI
- test dist build HOT 1
- test with multiple versions of Rollup in CI
- update some dependencies & regenerate Yarn lock - main branch HOT 1
- update dependencies in v.0.7.x post-RC patch release HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rollup-plugin-size-snapshot.