Giter Club home page Giter Club logo

Comments (4)

okikio avatar okikio commented on May 25, 2024

Could you please expand on this

from bundlejs.

TomokiMiyauci avatar TomokiMiyauci commented on May 25, 2024

@okikio For example, the following will result in a bundle result of 0.
Unused modules will be removed.

import { Result } from "https://deno.land/x/result_js/mod.ts";

This result is correct if i want to know the "bundled result".

My expectation was that the above example would allow me to measure the cost.
For example, the following is available: https://github.com/wix/import-cost

This is due to differences in project policies.
I realized that what I sought was not the role of this project.

from bundlejs.

okikio avatar okikio commented on May 25, 2024

@TomokiMiyauci In a future version having each import display their size write in the bundle may be added as an extra feature, but as of right now you're correct it's a little bit out of scope.

The one thing bundlejs does have is bundle analysis https://twitter.com/okikio_dev/status/1523562099334541313?s=20&t=JPPB2KIF8Wv1tQrJI5rm7w

You can try out bundle analysis https://bundlejs.com/?q=deno:result_js/mod.ts&treeshake=[{+Result+}]&config={"analysis":true}

^ It's not perfect, it doesn't give a perfect treeshake size

from bundlejs.

TomokiMiyauci avatar TomokiMiyauci commented on May 25, 2024

@okikio interesting!

^ It's not perfect, it doesn't give a perfect treeshake size

Indeed, the rendering of treemap seems to succeed only once in several times.

from bundlejs.

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.