mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
w: upgrade deps
This commit is contained in:
1 parent
6567c739b6
commit
67ec4cea0c
26 files changed
+120
-149
No files matched your search
@@ -2,7 +2,7 @@ import { Action, AnyAction, Reducer } from 'redux';
|
||||
|
||||
export default async function loadReactRedux<S, A extends Action = AnyAction>(storeReducer: Reducer<S, A>) {
|
||||
const React = await import('react');
|
||||
const { render, unmountComponentAtNode } = await import('react-dom');
|
||||
const { createRoot } = await import('react-dom/client');
|
||||
const { Provider } = await import('react-redux');
|
||||
const { createStore, applyMiddleware } = await import('redux');
|
||||
const { default: reduxThunk } = await import('redux-thunk');
|
||||
@@ -24,8 +24,7 @@ export default async function loadReactRedux<S, A extends Action = AnyAction>(st
|
||||
|
||||
return {
|
||||
React,
|
||||
render,
|
||||
unmountComponentAtNode,
|
||||
createRoot,
|
||||
Provider,
|
||||
store,
|
||||
};
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
// eslint-disable-next-line import/no-unresolved
|
||||
import yaml, { Schema } from 'real-js-yaml';
|
||||
|
||||
Schema.create = (arg1, arg2) => new Schema(arg1, arg2);
|
||||
|
||||
// eslint-disable-next-line import/no-unresolved
|
||||
export * from 'real-js-yaml';
|
||||
export default yaml;
|
||||
Reference in new issue
Block a user