GithubHelp home page GithubHelp logo

Comments (3)

otakustay avatar otakustay commented on July 17, 2024

详细说明一下这个问题

er在package.json中声明的mini-event的版本是1.x,而去除enable方法是在2.x中进行的,如果严格遵守依赖版本限制,是不会出这事的

@yibuyisheng 聊了一下,具体原因是使用了emc,而emc依赖的是2.x,因此导致整个版本被提升了

这个问题的本质是我们的edp没能做同库多版本的管理和require.config#map的配置管理,这个问题不知道 @leeight 是不是有啥想法,或者其实已经支持了

为了解决这一问题,我会做几个临时方案:

  1. 先对Deferred进行修改,使其从EventTarget继承而非使用enable
  2. 调整er中的require,如果存在.default就使用,即支持interopRequireDefault功能
  3. 发布一版ES6编写的er,为4.x版本

from er.

otakustay avatar otakustay commented on July 17, 2024

请试用3.1.1

4.x版本暂时pending,后续根据yami库的进度考虑

from er.

yibuyisheng avatar yibuyisheng commented on July 17, 2024

好的,感谢 @otakustay 大神!

from er.

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.