Giter VIP home page Giter VIP logo

Comments (4)

mynameiswhm avatar mynameiswhm commented on September 25, 2024

Thanks for your feedback!

There's two main problems right now:

  1. during my quick tests, brotli,js was at average 3x slower than iltorb
  2. brotli.js exposes only synchronous interface (due to emscripten-generated code)

While the first one could be solved using optionalDependencies and runtime require()s, the secound could be tricky and degrade overall webpack performance.

I'll look into it soon, but PRs are welcome :)

from brotli-webpack-plugin.

mynameiswhm avatar mynameiswhm commented on September 25, 2024

@unsafecode sorry for the delay! I've created PR #5 with conditional logic.

Could you please try it on your Windows setup with npm install --save-dev brotli-webpack-plugin@next and leave feedback?

from brotli-webpack-plugin.

unsafecode avatar unsafecode commented on September 25, 2024

@mynameiswhm Nice, it works! I'd just add in the docs the need of a peerDep for brotli, so to state it clearly.

from brotli-webpack-plugin.

mynameiswhm avatar mynameiswhm commented on September 25, 2024

@unsafecode both iltorb and brotli is now included in optionalDependencies, so npm will try to install all of them, but fail silently if something goes wrong. Worst case scenario: both installations failed, but it's hard to imagine that for brotli.js, which is precompiled emscripten port.

from brotli-webpack-plugin.

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.