Skip to content

Commit 6fb4376

Browse files
committed
fix(module): remove file extension from import-path
1 parent 69e9595 commit 6fb4376

File tree

13 files changed

+41
-41
lines changed

13 files changed

+41
-41
lines changed

src/components/PortalEntrance.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { Reconciler } from "../reconciler/index.js";
2-
import { arrayReconcileWithoutSorting } from "../reconciler/util.js";
3-
import type { ShadowComponentElement, ShadowElement } from "../types.js";
1+
import type { Reconciler } from "../reconciler/index";
2+
import { arrayReconcileWithoutSorting } from "../reconciler/util";
3+
import type { ShadowComponentElement, ShadowElement } from "../types";
44

55
const portalReconcile: Reconciler = (
66
parentElement,

src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import { batch, effect, Signal, signal, untracked } from "@preact/signals-core";
2-
import { reconcile, type ShadowCache } from "./reconciler/index.js";
3-
import { unmount } from "./reconciler/util.js";
2+
import { reconcile, type ShadowCache } from "./reconciler/index";
3+
import { unmount } from "./reconciler/util";
44
import type {
55
CustomEvents,
66
IntrinsicElementAttributes,
77
ReadonlyKeys,
88
ShadowElement,
9-
} from "./types.js";
10-
import { dispatchError } from "./utils.js";
9+
} from "./types";
10+
import { dispatchError } from "./utils";
1111

12-
export type { ShadowElement } from "./types.js";
12+
export type { ShadowElement } from "./types";
1313

14-
export { default as PortalEntrance } from "./components/PortalEntrance.js";
14+
export { default as PortalEntrance } from "./components/PortalEntrance";
1515

1616
export function mount(parent: HTMLElement, JSXElement: ShadowElement) {
1717
const shadowResult: ShadowCache = {

src/jsx-runtime.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { ShadowHostElement } from "./types.js";
2-
import { PLUSNEW_ELEMENT_TYPE } from "./types.js";
1+
import type { ShadowHostElement } from "./types";
2+
import { PLUSNEW_ELEMENT_TYPE } from "./types";
33

4-
export { Fragment } from "./types.js";
4+
export { Fragment } from "./types";
55

66
export function jsx(
77
type: string,

src/reconciler/array.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Reconciler } from "./index.js";
2-
import { arrayReconcileWithoutSorting, remove } from "./util.js";
1+
import type { Reconciler } from "./index";
2+
import { arrayReconcileWithoutSorting, remove } from "./util";
33

44
export const arrayReconcile: Reconciler = (
55
parentElement,

src/reconciler/component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { type ShadowComponentElement, type ShadowElement, PLUSNEW_ELEMENT_TYPE} from "../types.js";
2-
import type { Reconciler } from "./index.js";
3-
import { remove } from "./util.js";
1+
import { type ShadowComponentElement, type ShadowElement, PLUSNEW_ELEMENT_TYPE} from "../types";
2+
import type { Reconciler } from "./index";
3+
import { remove } from "./util";
44

55
export function isComponentElement(
66
shadowElement: ShadowElement,

src/reconciler/false.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Reconciler } from "./index.js";
2-
import { remove } from "./util.js";
1+
import type { Reconciler } from "./index";
2+
import { remove } from "./util";
33

44
export const falseReconcile: Reconciler = (
55
_parentElement,

src/reconciler/fragment.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { PLUSNEW_ELEMENT_TYPE, Fragment, type ShadowElement, type ShadowHostElement } from "../types.js";
2-
import type { Reconciler } from "./index.js";
3-
import { arrayReconcileWithoutSorting, remove } from "./util.js";
1+
import { PLUSNEW_ELEMENT_TYPE, Fragment, type ShadowElement, type ShadowHostElement } from "../types";
2+
import type { Reconciler } from "./index";
3+
import { arrayReconcileWithoutSorting, remove } from "./util";
44

55

66
export function isFragmentElement(

src/reconciler/host.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { untracked } from "@preact/signals-core";
2-
import { active } from "../index.js";
2+
import { active } from "../index";
33
import {
44
PLUSNEW_ELEMENT_TYPE,
55
type ShadowElement,
66
type ShadowHostElement,
7-
} from "../types.js";
8-
import type { Reconciler } from "./index.js";
9-
import { append, arrayReconcileWithoutSorting, remove } from "./util.js";
10-
import { dispatchError } from "../utils.js";
7+
} from "../types";
8+
import type { Reconciler } from "./index";
9+
import { append, arrayReconcileWithoutSorting, remove } from "./util";
10+
import { dispatchError } from "../utils";
1111

1212
const EVENT_PREFIX = "on";
1313

src/reconciler/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { type ShadowElement } from "../types.js";
2-
import { arrayReconcile } from "./array.js";
3-
import { componentReconcile } from "./component.js";
4-
import { falseReconcile } from "./false.js";
5-
import { fragmentReconcile } from "./fragment.js";
6-
import { hostReconcile } from "./host.js";
7-
import { textReconcile } from "./text.js";
1+
import { type ShadowElement } from "../types";
2+
import { arrayReconcile } from "./array";
3+
import { componentReconcile } from "./component";
4+
import { falseReconcile } from "./false";
5+
import { fragmentReconcile } from "./fragment";
6+
import { hostReconcile } from "./host";
7+
import { textReconcile } from "./text";
88

99
export type ShadowCache = {
1010
value: ShadowElement;

src/reconciler/text.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Reconciler } from "./index.js";
2-
import { append, remove } from "./util.js";
1+
import type { Reconciler } from "./index";
2+
import { append, remove } from "./util";
33

44
export const textReconcile: Reconciler = (
55
parentElement,

0 commit comments

Comments
 (0)