diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2023-09-12 02:27:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-12 02:27:19 +0200 |
commit | f75daab09102a4dd5107deadb55d4a169f86254a (patch) | |
tree | 71e7b9076d61d7aed7569f51c57b8651e9c16bfc /src/selector-native.js | |
parent | 42e50f8c21fbfd08092ad81add4ac38982ef0841 (diff) | |
download | jquery-f75daab09102a4dd5107deadb55d4a169f86254a.tar.gz jquery-f75daab09102a4dd5107deadb55d4a169f86254a.zip |
Core: Use named exports in `src/`
The `default` export is treated differently across tooling when transpiled
to CommonJS - tools differ on whether `module.exports` represents the full
module object or just its default export. Switch `src/` modules to named
exports for tooling consistency.
Fixes gh-5262
Closes gh-5292
Diffstat (limited to 'src/selector-native.js')
-rw-r--r-- | src/selector-native.js | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/src/selector-native.js b/src/selector-native.js index 5eb582cfd..afb60f227 100644 --- a/src/selector-native.js +++ b/src/selector-native.js @@ -21,20 +21,20 @@ * needs. */ -import jQuery from "./core.js"; -import document from "./var/document.js"; -import whitespace from "./var/whitespace.js"; -import isIE from "./var/isIE.js"; -import booleans from "./selector/var/booleans.js"; -import rleadingCombinator from "./selector/var/rleadingCombinator.js"; -import rdescend from "./selector/var/rdescend.js"; -import rsibling from "./selector/var/rsibling.js"; -import matches from "./selector/var/matches.js"; -import testContext from "./selector/testContext.js"; -import filterMatchExpr from "./selector/filterMatchExpr.js"; -import preFilter from "./selector/preFilter.js"; -import tokenize from "./selector/tokenize.js"; -import toSelector from "./selector/toSelector.js"; +import { jQuery } from "./core.js"; +import { document } from "./var/document.js"; +import { whitespace } from "./var/whitespace.js"; +import { isIE } from "./var/isIE.js"; +import { booleans } from "./selector/var/booleans.js"; +import { rleadingCombinator } from "./selector/var/rleadingCombinator.js"; +import { rdescend } from "./selector/var/rdescend.js"; +import { rsibling } from "./selector/var/rsibling.js"; +import { matches } from "./selector/var/matches.js"; +import { testContext } from "./selector/testContext.js"; +import { filterMatchExpr } from "./selector/filterMatchExpr.js"; +import { preFilter } from "./selector/preFilter.js"; +import { tokenize } from "./selector/tokenize.js"; +import { toSelector } from "./selector/toSelector.js"; // The following utils are attached directly to the jQuery object. import "./selector/escapeSelector.js"; @@ -145,3 +145,5 @@ jQuery.extend( jQuery.find, { }, tokenize: tokenize } ); + +export { jQuery, jQuery as $ }; |