Coder Social home page Coder Social logo

main in Package.json about color-space HOT 7 CLOSED

colorjs avatar colorjs commented on September 27, 2024
main in Package.json

from color-space.

Comments (7)

dy avatar dy commented on September 27, 2024

dist/color-space is built to use as a standalone module, so it exposes global colorSpace in case if you don’t use any commonJS wrapper.
It seems to be the issue of webpack, have you looked up for the solution on that? Browserify builds it just fine.
BTW, do you use that husl color space? I can just exclude it from the index.js, it is quite uncommon space and adds up extra size to build.

from color-space.

EliteScientist avatar EliteScientist commented on September 27, 2024

We do use a CommonsJS wrapper. We don't use the husl colors pace at all.

Excluding it would be awesome.

from color-space.

dy avatar dy commented on September 27, 2024

actually you can include only the color-spaces you use, the size of build will be minimal: require('color-space/hsl')

from color-space.

EliteScientist avatar EliteScientist commented on September 27, 2024

I prefer that method, I'll talk to our developer that used the lib and have him only require the spaces used.

Thanks!

from color-space.

dy avatar dy commented on September 27, 2024

Ok. So I’ll close this, as this seem to be the issue of webpack.
@sokra, please have a look.

from color-space.

sokra avatar sokra commented on September 27, 2024

Works fine for me. Maybe an incorrect configuration.

from color-space.

EliteScientist avatar EliteScientist commented on September 27, 2024

Probably our configuration. we have a very complicated configuration where webpack configs are generated at build time for each component and components are compiled separately.

I'll make sure that we only require whats necessary instead of the entire index.

Thanks for your help.

from color-space.

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.