Code Monkey home page Code Monkey logo

Comments (7)

yanickrochon avatar yanickrochon commented on June 15, 2024

Since the module uses ES2015 arrow functions, it is not compatible with client side code. I believe Meteor.js is working to enable Babel for node modules, but we are not there yet.

Note that arrow functions are still slower than legacy functions... I don't know why everyone use it everywhere already.

from camelcase.

Qix- avatar Qix- commented on June 15, 2024

I'll let @sindresorhus respond to this (:

from camelcase.

mozillo avatar mozillo commented on June 15, 2024

Got same error

from camelcase.

sindresorhus avatar sindresorhus commented on June 15, 2024

Note that arrow functions are still slower than legacy functions...

No: https://kpdecker.github.io/six-speed/

from camelcase.

sindresorhus avatar sindresorhus commented on June 15, 2024

See: sindresorhus/ama#446

from camelcase.

yanickrochon avatar yanickrochon commented on June 15, 2024

@sindresorhus what do you mean "no"? The link you suggest shows that declarations are generally 1.4x slower! Thus, in the actual implementation, you are effectively declaring arrow functions 3 times. Therefore, my statement is completely valid.

But this is beside the main issue; this module cannot be used on client side as it does not provide a browser friendly source, and UglifyJS fails.

You closed this issue without addressing the real problem.

from camelcase.

sindresorhus avatar sindresorhus commented on June 15, 2024

The arrow test shows it's identical. Even if it's 1.2x, that's pretty negligible in practice.

You closed this issue without addressing the real problem.

I linked to sindresorhus/ama#446. I don't have the time to answer this every time it comes up.

from camelcase.

Related Issues (20)

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.