File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 14
14
"directory" : " packages/dev-middleware"
15
15
},
16
16
"license" : " MIT" ,
17
+ "exports" : {
18
+ "." : " ./src/index.js" ,
19
+ "./package.json" : " ./package.json"
20
+ },
17
21
"files" : [
18
22
" dist"
19
23
],
Original file line number Diff line number Diff line change @@ -59,6 +59,13 @@ type Options = $ReadOnly<{
59
59
* This is an unstable API with no semver guarantees.
60
60
*/
61
61
unstable_experiments ?: ExperimentsConfig ,
62
+
63
+ /**
64
+ * An interface for using a modified inspector proxy implementation.
65
+ *
66
+ * This is an unstable API with no semver guarantees.
67
+ */
68
+ unstable_InspectorProxy ?: Class < InspectorProxy > ,
62
69
} > ;
63
70
64
71
type DevMiddlewareAPI = $ReadOnly < {
@@ -73,10 +80,11 @@ export default function createDevMiddleware({
73
80
unstable_browserLauncher = DefaultBrowserLauncher ,
74
81
unstable_eventReporter,
75
82
unstable_experiments : experimentConfig = { } ,
83
+ unstable_InspectorProxy = InspectorProxy ,
76
84
} : Options ) : DevMiddlewareAPI {
77
85
const experiments = getExperiments ( experimentConfig ) ;
78
86
79
- const inspectorProxy = new InspectorProxy (
87
+ const inspectorProxy = new unstable_InspectorProxy (
80
88
projectRoot ,
81
89
serverBaseUrl ,
82
90
unstable_eventReporter ,
Original file line number Diff line number Diff line change @@ -13,3 +13,6 @@ export {default as createDevMiddleware} from './createDevMiddleware';
13
13
14
14
export type { BrowserLauncher , LaunchedBrowser } from './types/BrowserLauncher' ;
15
15
export type { EventReporter , ReportableEvent } from './types/EventReporter' ;
16
+
17
+ export { InspectorProxy as unstable_InspectorProxy } from './inspector-proxy/InspectorProxy' ;
18
+ export { Device as unstable_Device } from './inspector-proxy/Device' ;
You can’t perform that action at this time.
0 commit comments