jquery/test
Michał Gołębiowski-Owczarek 8be4c0e4f8
Build: Add exports to package.json, export slim & esm builds
Summary of the changes:
* define the `exports` field in `package.json`; `jQuery` & `$` are also
  exported as named exports in ESM builds now
* declare `"type": "module"` globally except for the `build` folder
* add the `--esm` option to `grunt custom`, generating jQuery as an ECMAScript
  module into the `dist-module` folder
* expand `node_smoke_tests` to test the slim & ESM builds and their various
  combinations; also, test both jQuery loaded via a path to the file as well
  as from module specifiers that should be parsed via the `exports` feature
* add details about ESM usage to the release package README
* run `compare_size` on all built minified files; don't run it anymore on
  unminified files where they don't provide lots of value
* remove the remove_map_comment task; SWC doesn't insert the
`//# sourceMappingURL=` pragma by default so there's nothing to strip

Fixes gh-4592
Closes gh-5255
2023-07-10 19:14:08 +02:00
..
data Build: Add exports to package.json, export slim & esm builds 2023-07-10 19:14:08 +02:00
integration Event: Fix delegated radio events when arrow keys are used 2015-10-18 13:06:37 -04:00
node_smoke_tests Build: Add exports to package.json, export slim & esm builds 2023-07-10 19:14:08 +02:00
promises_aplus_adapters Build: Add exports to package.json, export slim & esm builds 2023-07-10 19:14:08 +02:00
unit CSS: Make the reliableTrDimensions support test work with Bootstrap CSS 2023-07-10 18:33:05 +02:00
.eslintrc.json Build: Migrate middleware-mockserver to modern JS 2023-01-23 23:20:08 +01:00
delegatetest.html Tests: Change quotes according to style guidelines 2015-10-18 13:17:23 -04:00
hovertest.html Ref #13316: Sync all documents on full vs. minified source. Close gh-1147. 2013-02-07 15:16:28 -05:00
index.html Build: Drop individual AMD modules 2023-06-27 18:23:58 +02:00
jquery.js Build: Drop individual AMD modules 2023-06-27 18:23:58 +02:00
karma.context.html Build: Drop individual AMD modules 2023-06-27 18:23:58 +02:00
karma.debug.html Build: Drop individual AMD modules 2023-06-27 18:23:58 +02:00
localfile.html Manipulation: Make jQuery.htmlPrefilter an identity function 2020-03-16 21:49:29 +01:00
middleware-mockserver.cjs Build: Add exports to package.json, export slim & esm builds 2023-07-10 19:14:08 +02:00
networkerror.html Docs: Replace #NUMBER Trac issue references with trac-NUMBER 2022-01-04 16:27:18 +01:00
xhtml.php Added a way to run the test suite as an XHTML page. 2009-01-19 18:14:51 +00:00