Giter Site home page Giter Site logo

Comments (2)

gregorylegarec avatar gregorylegarec commented on June 15, 2024

As long as cozy-client-js is still usable in a "simple" vanilla app without any dependency, we may remove it.

from cozy-client-js.

enguerran avatar enguerran commented on June 15, 2024

Minute of meeting (@enguerran et @ptbrowne) :

  • y'a un bon mois, patrick a repéré un bug sur safari et à remonter la source jusqu'à un int8array, ce qui lui a fait penser à un souci de polyfill
  • suspectant que charger 2 fois babel-polyfill pouvait amener à des bugs, il a viré babel-polyfill et a plus ou moins cargo culté l'ajout d'un transform-runtime dans cozy/cozy-bar#113 via https://github.com/CPatchane/create-cozy-app/blob/master/packages/babel-preset-cozy-app/index.js
  • sans trop chercher plus de détails, il a alerté via une issue sur cozy-client-js que je n'avais pas vu
  • sans trop chercher plus de détails, je m'en vais virer babel-polyfill de la lib car babel-polyfill est déjà chargée par cozy-drive
  • ce qui est différent entre cozy-client-js servie par la stack ou inclue dans les imports de cozy-drive, c'est que dans le 2e cas, on passe par une babel-loader qui doit faire des trucs pour pas que ça pète.
  • si aucun polyfill n'est présent lors du runtime, la console log regeneratorRuntime is not defined, par ailleurs :
    • si on ajoute babel-polyfill dans cozy-drive, c'est ok
    • si on ajoute babel-polyfill dans cozy-client-js, c'est ok
    • si on ajoute aux 2 endroits, c'est ko (si les scripts sont chargés indépendamment)

from cozy-client-js.

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.