move constants.ts into src/runtime

pull/5702/head
Ivan Hofer 5 years ago
parent 2ad3433dc2
commit 90df732b28

@ -1,6 +1,6 @@
import { run_all } from './utils'; import { run_all } from './utils';
import { set_current_component } from './lifecycle'; import { set_current_component } from './lifecycle';
import { resolved_promise } from '../../constants'; import { resolved_promise } from '../constants';
export const dirty_components = []; export const dirty_components = [];
export const intros = { enabled: false }; export const intros = { enabled: false };

@ -5,7 +5,7 @@ import { create_rule, delete_rule } from './style_manager';
import { custom_event } from './dom'; import { custom_event } from './dom';
import { add_render_callback } from './scheduler'; import { add_render_callback } from './scheduler';
import { TransitionConfig } from '../transition'; import { TransitionConfig } from '../transition';
import { resolved_promise } from '../../constants'; import { resolved_promise } from '../constants';
let promise: Promise<void>|null; let promise: Promise<void>|null;

@ -1,7 +1,7 @@
import { Readable, writable } from 'svelte/store'; import { Readable, writable } from 'svelte/store';
import { loop, now, Task } from 'svelte/internal'; import { loop, now, Task } from 'svelte/internal';
import { is_date } from './utils'; import { is_date } from './utils';
import { resolved_promise } from '../../constants'; import { resolved_promise } from '../constants';
interface TickContext<T> { interface TickContext<T> {
inv_mass: number; inv_mass: number;

@ -2,7 +2,7 @@ import { Readable, writable } from 'svelte/store';
import { assign, is_function, loop, now, Task } from 'svelte/internal'; import { assign, is_function, loop, now, Task } from 'svelte/internal';
import { linear } from 'svelte/easing'; import { linear } from 'svelte/easing';
import { is_date } from './utils'; import { is_date } from './utils';
import { resolved_promise } from '../../constants'; import { resolved_promise } from '../constants';
function get_interpolator(a, b) { function get_interpolator(a, b) {
if (a === b || a !== a) return () => a; if (a === b || a !== a) return () => a;

@ -1,6 +1,6 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"include": [".", "../constants.ts"], "include": ["."],
"compilerOptions": { "compilerOptions": {
"lib": ["es2015", "dom", "dom.iterable"], "lib": ["es2015", "dom", "dom.iterable"],

Loading…
Cancel
Save