File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
packages/build/src/plugins Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -120,15 +120,8 @@ const normalizePluginsList = function (pluginsList: PluginListEntry[]) {
120120 ) as PluginList
121121}
122122
123- /**
124- * `version` in `plugins.json` is the latest version.
125- * A `compatibility` array of objects can be added to specify conditions to
126- * apply different versions.
127- * `netlify/plugins` ensures that `compatibility`:
128- * - Has the proper shape.
129- * - Is sorted from the highest to lowest version.
130- * - Does not include the latest `version`.
131- */
123+ // When `compatability` array is present it takes precedence, otherwise top-level `version` field is used as latest version
124+ // Plugin data comes from @netlify /plugins
132125const normalizePluginItem = function ( { package : packageName , version, compatibility = [ ] } : PluginListEntry ) {
133126 const versions = compatibility . length === 0 ? [ { version } ] : compatibility
134127 const versionsA = versions . map ( normalizeCompatVersion )
You can’t perform that action at this time.
0 commit comments