Skip to content

Commit

Permalink
chore: reduce dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkXia committed Aug 15, 2023
1 parent 8d91b58 commit d32b9c3
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 7 deletions.
3 changes: 3 additions & 0 deletions packages/bundles/src/react-refresh-runtime.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import runtime from 'react-refresh/runtime';

export default runtime;
1 change: 0 additions & 1 deletion packages/ice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"mrmime": "^1.0.0",
"open": "^8.4.0",
"path-to-regexp": "^6.2.0",
"react-refresh": "0.14.0",
"regenerator-runtime": "^0.13.0",
"resolve.exports": "^1.1.0",
"semver": "^7.3.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/ice/src/bundler/rspack/client/reactRefresh.cts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Thanks https://github.com/pmmmwh/react-refresh-webpack-plugin
const RefreshUtils = require('@ice/bundles/compiled/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils');
const RefreshRuntime = require('react-refresh/runtime');
const RefreshRuntime = require('@ice/bundles/esm/react-refresh-runtime').default;

// Port from https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/loader/utils/getRefreshModuleRuntime.js#L29
function refresh(moduleId, webpackHot) {
Expand Down
68 changes: 63 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d32b9c3

Please sign in to comment.