Code Monkey home page Code Monkey logo

Comments (6)

David-Tsui avatar David-Tsui commented on May 18, 2024

請問何時會需要如此功能呢?(搔頭

from technology-blog.

chengqilong avatar chengqilong commented on May 18, 2024

請問何時會需要如此功能呢?(搔頭

看来你还不知道按需使用antd,或者其他第三方的库,这是减少包体积的常见问题呀

from technology-blog.

David-Tsui avatar David-Tsui commented on May 18, 2024

請問何時會需要如此功能呢?(搔頭

看来你还不知道按需使用antd,或者其他第三方的库,这是减少包体积的常见问题呀

喔 現在看懂了,原本以為是要延伸或是縮小第三方庫單一組件代碼。
應該是當時眼花了哈哈

from technology-blog.

airuikun avatar airuikun commented on May 18, 2024

請問何時會需要如此功能呢?(搔頭

看来你还不知道按需使用antd,或者其他第三方的库,这是减少包体积的常见问题呀

喔 現在看懂了,原本以為是要延伸或是縮小第三方庫組件代碼。
應該是當時眼花了哈哈

嗯 现在webpack的tree shaking 和antd自带的一个plugin也有按需加载 这题就考一下按需加载的实现原理 当然 我的答案是通过编写babel插件去实现按需加载 你要是有别的方法 也可以共享出来

from technology-blog.

xinbbbb avatar xinbbbb commented on May 18, 2024

webpack4 + babel7 已经可以实现tree shaking了

from technology-blog.

haoolii avatar haoolii commented on May 18, 2024

太苦了吧

from technology-blog.

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.