Skip to content

Commit

Permalink
feat(devtools): export type DevtoolsPluginInlineOptions (#4868)
Browse files Browse the repository at this point in the history
  • Loading branch information
Asuka109 authored Oct 26, 2023
1 parent 335791b commit fe7545f
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 12 deletions.
9 changes: 9 additions & 0 deletions .changeset/rotten-badgers-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@modern-js/devtools-client': minor
'@modern-js/plugin-devtools': minor
'@modern-js/devtools-kit': minor
---

build(devtools): reduce package size by remove radix-ui from dependencies

build(devtools): 移出 radix-ui 依赖以减小包体积
4 changes: 2 additions & 2 deletions packages/devtools/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"files": [
"dist"
],
"dependencies": {},
"devDependencies": {
"@modern-js-app/eslint-config": "workspace:*",
"@modern-js/app-tools": "workspace:*",
Expand Down Expand Up @@ -56,6 +57,5 @@
"typescript": "~5.0.4",
"ufo": "^1.2.0",
"valtio": "^1.11.1"
},
"dependencies": {}
}
}
3 changes: 1 addition & 2 deletions packages/devtools/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@
"dependencies": {
"@modern-js/types": "workspace:*",
"@modern-js/utils": "workspace:*",
"@radix-ui/themes": "^2.0.0",
"ufo": "^1.2.0",
"ws": "8.13.0"
"ws": "^8.13.0"
},
"devDependencies": {
"@modern-js/app-tools": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@modern-js/utils": "workspace:*",
"serve-static": "^1.14.1",
"p-defer": "^3.0.0",
"ws": "8.13.0",
"ws": "^8.13.0",
"ufo": "^1.3.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/plugin/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { devtoolsPlugin, default } from './cli';
export type { DevtoolsPluginOptions } from './cli';
export type { DevtoolsPluginOptions, DevtoolsPluginInlineOptions } from './cli';
38 changes: 32 additions & 6 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 fe7545f

Please sign in to comment.