move operations.js

pull/10780/head
Rich Harris 2 years ago
parent bca36ae5c7
commit fcca25dc63

@ -1,6 +1,6 @@
import { namespace_svg } from '../../../../constants.js';
import { current_hydration_fragment, hydrate_block_anchor, hydrating } from '../../hydration.js';
import { empty } from '../../operations.js';
import { empty } from '../operations.js';
import { render_effect } from '../../reactivity/effects.js';
import { insert, remove } from '../../reconciler.js';

@ -14,7 +14,7 @@ import {
hydrating,
set_current_hydration_fragment
} from '../../hydration.js';
import { clear_text_content, empty, map_get, map_set } from '../../operations.js';
import { clear_text_content, empty, map_get, map_set } from '../operations.js';
import { insert, remove } from '../../reconciler.js';
import { current_block, execute_effect } from '../../runtime.js';
import { destroy_effect, render_effect } from '../../reactivity/effects.js';

@ -1,7 +1,7 @@
import { namespace_svg } from '../../../../constants.js';
import { DYNAMIC_ELEMENT_BLOCK } from '../../constants.js';
import { current_hydration_fragment, hydrate_block_anchor, hydrating } from '../../hydration.js';
import { empty } from '../../operations.js';
import { empty } from '../operations.js';
import { destroy_effect, render_effect } from '../../reactivity/effects.js';
import { insert, remove } from '../../reconciler.js';
import { current_block, execute_effect } from '../../runtime.js';

@ -5,7 +5,7 @@ import {
hydrating,
set_current_hydration_fragment
} from '../../hydration.js';
import { empty } from '../../operations.js';
import { empty } from '../operations.js';
import { render_effect } from '../../reactivity/effects.js';
import { remove } from '../../reconciler.js';
import { current_block } from '../../runtime.js';

@ -2,7 +2,7 @@ import { DEV } from 'esm-env';
import { hydrating } from '../../hydration.js';
import { render_effect } from '../../reactivity/effects.js';
import { get_descriptors, object_assign } from '../../utils.js';
import { map_get, map_set } from '../../operations.js';
import { map_get, map_set } from '../operations.js';
import { AttributeAliases, DelegatedEvents, namespace_svg } from '../../../../constants.js';
import { delegate } from './events.js';
import { autofocus } from './misc.js';

@ -1,5 +1,5 @@
import { hydrating } from '../../hydration.js';
import { set_class_name } from '../../operations.js';
import { set_class_name } from '../operations.js';
import { render_effect } from '../../reactivity/effects.js';
/**

@ -11,7 +11,7 @@ import {
} from '../../constants.js';
import { destroy_each_item_block, get_first_element } from '../blocks/each.js';
import { schedule_raf_task } from '../task.js';
import { append_child, empty } from '../../operations.js';
import { append_child, empty } from '../operations.js';
import {
destroy_effect,
effect,

@ -1,5 +1,5 @@
import { current_hydration_fragment, get_hydration_fragment, hydrating } from './hydration.js';
import { get_descriptor } from './utils.js';
import { current_hydration_fragment, get_hydration_fragment, hydrating } from '../hydration.js';
import { get_descriptor } from '../utils.js';
// We cache the Node and Element prototype methods, so that we can avoid doing
// expensive prototype chain lookups.

@ -1,5 +1,5 @@
import { current_hydration_fragment, hydrate_block_anchor, hydrating } from '../hydration.js';
import { child, clone_node, empty } from '../operations.js';
import { child, clone_node, empty } from './operations.js';
import {
create_fragment_from_html,
create_fragment_with_script_from_html,

@ -1,7 +1,7 @@
// Handle hydration
import { schedule_task } from './dom/task.js';
import { empty } from './operations.js';
import { empty } from './dom/operations.js';
/**
* Use this variable to guard everything related to hydration code so it can be treeshaken out

@ -1,4 +1,4 @@
import { append_child } from './operations.js';
import { append_child } from './dom/operations.js';
import { current_hydration_fragment, hydrate_block_anchor, hydrating } from './hydration.js';
import { is_array } from './utils.js';

@ -1,5 +1,5 @@
import { DEV } from 'esm-env';
import { append_child, create_element, empty, init_operations } from './operations.js';
import { append_child, create_element, empty, init_operations } from './dom/operations.js';
import { PassiveDelegatedEvents } from '../../constants.js';
import { remove } from './reconciler.js';
import {

@ -66,5 +66,5 @@ export {
sibling,
$window as window,
$document as document
} from './client/operations.js';
} from './client/dom/operations.js';
export { noop } from './common.js';

Loading…
Cancel
Save