Browse Source

Remove jQuery Migrate from the default bundle

pull/26027/head
maliming 3 months ago
parent
commit
3e422a82da
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 1
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/JQuery/JQueryScriptContributor.cs
  2. 3
      npm/packs/jquery/abp.resourcemapping.js
  3. 3
      npm/packs/jquery/package.json
  4. 2
      npm/packs/select2/package.json

1
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/JQuery/JQueryScriptContributor.cs

@ -11,7 +11,6 @@ public class JQueryScriptContributor : BundleContributor
public override void ConfigureBundle(BundleConfigurationContext context)
{
context.Files.AddIfNotContains("/libs/jquery/jquery.js");
context.Files.AddIfNotContains("/libs/jquery-migrate/jquery-migrate.js");
context.Files.AddIfNotContains("/libs/abp/jquery/abp.jquery.js");
}
}

3
npm/packs/jquery/abp.resourcemapping.js

@ -1,9 +1,6 @@
module.exports = {
mappings: {
"@node_modules/jquery/dist/jquery.js": "@libs/jquery/",
"@node_modules/jquery-migrate/dist/jquery-migrate.js": "@libs/jquery-migrate/",
"@node_modules/jquery-migrate/dist/jquery-migrate.min.js": "@libs/jquery-migrate/",
"@node_modules/jquery-migrate/dist/jquery-migrate.min.map": "@libs/jquery-migrate/",
"@node_modules/@abp/jquery/src/*.*": "@libs/abp/jquery/"
}
}

3
npm/packs/jquery/package.json

@ -11,8 +11,7 @@
},
"dependencies": {
"@abp/core": "~10.7.0-rc.3",
"jquery": "~4.0.0",
"jquery-migrate": "~4.0.2"
"jquery": "~4.0.0"
},
"gitHead": "bb4ea17d5996f01889134c138d00b6c8f858a431",
"homepage": "https://abp.io",

2
npm/packs/select2/package.json

@ -11,7 +11,7 @@
},
"dependencies": {
"@abp/core": "~10.7.0-rc.3",
"select2": "^4.0.13"
"select2": "^4.1.0"
},
"gitHead": "bb4ea17d5996f01889134c138d00b6c8f858a431",
"homepage": "https://abp.io",

Loading…
Cancel
Save