Giter Site home page Giter Site logo

Comments (4)

maoueh avatar maoueh commented on June 18, 2024

@mwawrusch Which bundling tool are you using (if any)? (like Webpack or something).

We added a UMD build and it seems the fs dependency is still included in the output build file. I will look into it.

from client-js.

maoueh avatar maoueh commented on June 18, 2024

I just published 0.2.0-rc.31 that should fix your issue. Please report it's indeed fixing the problem.

We provide an ESM build also that could be picked by your bundler instead of the UMD build. Doing this would enable you to use tree-shaking feature of the bundler which would remove stuff that you do not use from the library.

from client-js.

mwawrusch avatar mwawrusch commented on June 18, 2024

Yes it works, thank you. Using angular-cli here, which I still think is built on top of webpack.

from client-js.

maoueh avatar maoueh commented on June 18, 2024

Excellent!

Yeah most likely built on it, maybe an old version. Not a big deal as the library is quite small, but if you need to optimize your build output at some point, look into that, using the ESM as defined by the library package.json module field instead of the UMD build.

from client-js.

Related Issues (16)

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.