-
Notifications
You must be signed in to change notification settings - Fork 128
Closed
Description
Basically, an alternative and more extensible format to the "moduleType" property proposed in #10.
{ "name": "jquery",
"main": "jquery.js",
"amd": {
"main": "jquery-amd.js"
},
"es6-module": {
"main": "jquery-es6.js"
},
"imports": {
"main": ["jquery.html", "jquery.js", "jquery.css"]
}
}Instead of simply just declaring a moduleType, packages can declare a nested set of overrides. If the build tool is intended for AMD, it will prefer an amd.main value, otherwise fallback to the top level main.
Right now main is the only interesting property to build tools. Others could be introduced in the future and this format would support them.
I feel like the spec should list out a set of suggested "extension types" based on the use cases we've already seen.
amdcjsorcommonjs(probably the latter)es6-modulesimportsHTML import / web component style
/cc @robdodson @rpflorence @joliss @briandipalma @wibblymat @paulirish @benschwarz
Metadata
Metadata
Assignees
Labels
No labels