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/manipulation/domManip.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/manipulation/domManip.js')
-rw-r--r-- | src/manipulation/domManip.js | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/manipulation/domManip.js b/src/manipulation/domManip.js index 65856a67d..39c146c89 100644 --- a/src/manipulation/domManip.js +++ b/src/manipulation/domManip.js @@ -1,10 +1,10 @@ -import jQuery from "../core.js"; -import flat from "../var/flat.js"; -import rscriptType from "./var/rscriptType.js"; -import getAll from "./getAll.js"; -import buildFragment from "./buildFragment.js"; -import dataPriv from "../data/var/dataPriv.js"; -import DOMEval from "../core/DOMEval.js"; +import { jQuery } from "../core.js"; +import { flat } from "../var/flat.js"; +import { rscriptType } from "./var/rscriptType.js"; +import { getAll } from "./getAll.js"; +import { buildFragment } from "./buildFragment.js"; +import { dataPriv } from "../data/var/dataPriv.js"; +import { DOMEval } from "../core/DOMEval.js"; // Replace/restore the type attribute of script elements for safe DOM manipulation function disableScript( elem ) { @@ -21,7 +21,7 @@ function restoreScript( elem ) { return elem; } -function domManip( collection, args, callback, ignored ) { +export function domManip( collection, args, callback, ignored ) { // Flatten any nested arrays args = flat( args ); @@ -105,5 +105,3 @@ function domManip( collection, args, callback, ignored ) { return collection; } - -export default domManip; |