Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add extensions for relative imports #752

Merged
merged 1 commit into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ReactKonva.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
'use strict';

import 'konva';
export * from './ReactKonvaCore';
export * from './ReactKonvaCore.js';
8 changes: 4 additions & 4 deletions src/ReactKonvaCore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
'use strict';

import React from 'react';
import Konva from 'konva/lib/Core';
import Konva from 'konva/lib/Core.js';
import ReactFiberReconciler from 'react-reconciler';
import { LegacyRoot, ConcurrentRoot } from 'react-reconciler/constants';
import * as HostConfig from './ReactKonvaHostConfig';
import { applyNodeProps, toggleStrictMode } from './makeUpdates';
import { LegacyRoot, ConcurrentRoot } from 'react-reconciler/constants.js';
import * as HostConfig from './ReactKonvaHostConfig.js';
import { applyNodeProps, toggleStrictMode } from './makeUpdates.js';
import { useContextBridge, FiberProvider } from 'its-fine';

function usePrevious(value) {
Expand Down
6 changes: 3 additions & 3 deletions src/ReactKonvaHostConfig.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Konva from 'konva/lib/Core';
import { applyNodeProps, updatePicture, EVENTS_NAMESPACE } from './makeUpdates';
import Konva from 'konva/lib/Core.js';
import { applyNodeProps, updatePicture, EVENTS_NAMESPACE } from './makeUpdates.js';

export {
unstable_now as now,
unstable_IdlePriority as idlePriority,
unstable_runWithPriority as run,
} from 'scheduler';
import { DefaultEventPriority } from 'react-reconciler/constants';
import { DefaultEventPriority } from 'react-reconciler/constants.js';

const NO_CONTEXT = {};
const UPDATE_SIGNAL = {};
Expand Down
2 changes: 1 addition & 1 deletion src/makeUpdates.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Konva } from 'konva/lib/Global';
import { Konva } from 'konva/lib/Global.js';

const propsToSkip = {
children: true,
Expand Down