Giter VIP home page Giter VIP logo

Comments (4)

lifesinger avatar lifesinger commented on August 19, 2024

文河,这个我昨天晚上在你的基础上,针对 jquery 写了一份:

https://github.com/seajs/spm/blob/master/modules/jquery/transport.js

输出有些变化,只需提取依赖信息就好,比如生成的 jquery.js 里:

define([], function])

from spm.

yyfrankyy avatar yyfrankyy commented on August 19, 2024

根据exports.version 然后解析文件获取版本号,不是一般麻烦,先放到annotation里。

因为一旦这些元信息需要在js里提供,那name,author等其他属性也都可以这么做,wrapping部分保持必需的兼容封装代码即可。

from spm.

lifesinger avatar lifesinger commented on August 19, 2024

可以的, @src @min 里,看了看,好多也是版本依赖的
因此 @Version 手动指定就好了

from spm.

yyfrankyy avatar yyfrankyy commented on August 19, 2024

parser部分功能已经完成,回头需要再继续调整。close

from spm.

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.