Giter Club home page Giter Club logo

Comments (6)

brodybits avatar brodybits commented on June 26, 2024 1

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.

brodybits avatar brodybits commented on June 26, 2024 1

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.

brodybits avatar brodybits commented on June 26, 2024 1

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.

Francois-Esquire avatar Francois-Esquire commented on June 26, 2024

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.

brodybits avatar brodybits commented on June 26, 2024

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.

Francois-Esquire avatar Francois-Esquire commented on June 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.