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/effects.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/effects.js')
-rw-r--r-- | src/effects.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/effects.js b/src/effects.js index 49b0bf67d..99dbad7bc 100644 --- a/src/effects.js +++ b/src/effects.js @@ -1,13 +1,13 @@ -import jQuery from "./core.js"; -import document from "./var/document.js"; -import rcssNum from "./var/rcssNum.js"; -import rnothtmlwhite from "./var/rnothtmlwhite.js"; -import cssExpand from "./css/var/cssExpand.js"; -import isHiddenWithinTree from "./css/var/isHiddenWithinTree.js"; -import adjustCSS from "./css/adjustCSS.js"; -import cssCamelCase from "./css/cssCamelCase.js"; -import dataPriv from "./data/var/dataPriv.js"; -import showHide from "./css/showHide.js"; +import { jQuery } from "./core.js"; +import { document } from "./var/document.js"; +import { rcssNum } from "./var/rcssNum.js"; +import { rnothtmlwhite } from "./var/rnothtmlwhite.js"; +import { cssExpand } from "./css/var/cssExpand.js"; +import { isHiddenWithinTree } from "./css/var/isHiddenWithinTree.js"; +import { adjustCSS } from "./css/adjustCSS.js"; +import { cssCamelCase } from "./css/cssCamelCase.js"; +import { dataPriv } from "./data/var/dataPriv.js"; +import { showHide } from "./css/showHide.js"; import "./core/init.js"; import "./queue.js"; @@ -684,4 +684,4 @@ jQuery.fx.speeds = { _default: 400 }; -export default jQuery; +export { jQuery, jQuery as $ }; |