Giter Club home page Giter Club logo

Comments (7)

vlad909 avatar vlad909 commented on June 18, 2024 6

I found a solution: u must change your import to
import fitty from 'fitty/dist/fitty.min.js'
it works perfectly for me

from fitty.

maxfriedmann avatar maxfriedmann commented on June 18, 2024 3

@vlad909's solution did not work for me since typescript would complain about missing types.

Ugly workaround for me:

// eslint-disable-next-line @typescript-eslint/no-var-requires
const fitty = require("fitty/dist/fitty.min.js");

from fitty.

varunarora avatar varunarora commented on June 18, 2024 2

Such a non-elegant solution. Someone who works on the library may consider submitting a PR to fix this.

from fitty.

rikschennink avatar rikschennink commented on June 18, 2024 2

Updated

main now points to fity.min.js

module now points to fitty.module.js

from fitty.

flexbox avatar flexbox commented on June 18, 2024 1

Such a non-elegant solution. Someone who works on the library may consider submitting a PR to fix this.

@varunarora feel free to do it πŸ˜‰

from fitty.

7zf001 avatar 7zf001 commented on June 18, 2024

@vlad909 yup, thanks, that’s what I did.

from fitty.

chou0728 avatar chou0728 commented on June 18, 2024

Actually just change the primary entry point in package.json from dist/fitty.module.js to dist/fitty.min.js is okay

from fitty.

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.