Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Jul 19, 2023
1 parent 76d0e91 commit 1f06bbf
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { options, h, Fragment } from 'preact';
import { encodeEntities, styleObjToCss, UNSAFE_NAME, XLINK } from './lib/util';
import { encodeEntities, styleObjToCss, UNSAFE_NAME, XLINK } from './lib/util.js';
import {
CHILDREN,
COMMIT,
Expand All @@ -13,7 +13,7 @@ import {
SKIP_EFFECTS,
VNODE,
CATCH_ERROR
} from './lib/constants';
} from './lib/constants.js';

const EMPTY_ARR = [];
const isArray = Array.isArray;
Expand Down
8 changes: 4 additions & 4 deletions src/lib/chunked.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import renderToString from '../index';
import { CHILD_DID_SUSPEND, COMPONENT, PARENT } from './constants';
import { Deferred } from './util';
import { createInitScript, createSubtree } from './client';
import { renderToString } from '../index.js';
import { CHILD_DID_SUSPEND, COMPONENT, PARENT } from './constants.js';
import { Deferred } from './util.js';
import { createInitScript, createSubtree } from './client.js';

/**
* @param {VNode} vnode
Expand Down
3 changes: 1 addition & 2 deletions src/pretty.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import {
XLINK,
VOID_ELEMENTS
} from './lib/util.js';
import { COMMIT, DIFF, DIFFED, RENDER, SKIP_EFFECTS } from './lib/constants';
import { COMMIT, DIFF, DIFFED, RENDER, SKIP_EFFECTS } from './constants.js';
import { COMMIT, DIFF, DIFFED, RENDER, SKIP_EFFECTS } from './lib/constants.js';
import { options, Fragment } from 'preact';

// components without names, kept as a hash for later comparison to return consistent UnnamedComponentXX names.
Expand Down
2 changes: 1 addition & 1 deletion src/stream-node.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PassThrough } from 'node:stream';
import { renderToChunks } from './lib/chunked';
import { renderToChunks } from './lib/chunked.js';

/**
* @typedef {object} RenderToPipeableStreamOptions
Expand Down
4 changes: 2 additions & 2 deletions src/stream.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Deferred } from './lib/util';
import { renderToChunks } from './lib/chunked';
import { Deferred } from './lib/util.js';
import { renderToChunks } from './lib/chunked.js';

/** @typedef {ReadableStream<Uint8Array> & { allReady: Promise<void>}} RenderStream */

Expand Down

0 comments on commit 1f06bbf

Please sign in to comment.