Giter Site home page Giter Site logo

Comments (8)

janriemer avatar janriemer commented on May 24, 2024 2

Isn't this PR adding support for ES6 with babel? Can it be merged?

from string-similarity.

balazsorban44 avatar balazsorban44 commented on May 24, 2024 1

From terser

Why choose terser?
uglify-es is no longer maintained and uglify-js does not support ES6+.
terser is a fork of uglify-es that retains API and CLI compatibility with uglify-es and uglify-js@3.

from string-similarity.

ljmerza avatar ljmerza commented on May 24, 2024 1

es6 has been out for almost 5 years. why go through the trouble of supporting uglify-js? don't enable outdated code.

from string-similarity.

aceakash avatar aceakash commented on May 24, 2024

Don't know enough about Uglify, sorry. Does it support ES6? That might be the difference.
Try using the latest version 1.x of string-similarity which is ES5 to verify.

from string-similarity.

evgenyfadeev avatar evgenyfadeev commented on May 24, 2024

uglify does not support es6, so I thought you might add a build config to transpile the code to es5...

from string-similarity.

aceakash avatar aceakash commented on May 24, 2024

Fair enough @evgenyfadeev, I'm open to any PRs for build config.

from string-similarity.

janriemer avatar janriemer commented on May 24, 2024

@aceakash @evgenyfadeev
Actually, terser supports minification of ES6. 👌
I've used it with rollup in scrolldir-observable.

from string-similarity.

sitch avatar sitch commented on May 24, 2024

bump

from string-similarity.

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.