@tamagui/cli 1.52.4 → 1.52.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/createDevServer.js +58 -39
- package/dist/dev/createDevServer.js.map +2 -2
- package/dist/dev.js +142 -90
- package/dist/dev.js.map +2 -2
- package/dist/vendor/repack/dev-server/src/createServer.js +14 -2
- package/dist/vendor/repack/dev-server/src/createServer.js.map +2 -2
- package/dist/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.js +0 -3
- package/dist/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.js.map +1 -1
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.js +1 -1
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.js.map +1 -1
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.js +4 -1
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.js.map +1 -1
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.js +1 -0
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.js.map +1 -1
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.js +2 -2
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.js.map +1 -1
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.js +1 -0
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.js.map +1 -1
- package/dist/vendor/repack/dev-server/src/plugins/wss/wssPlugin.js +4 -1
- package/dist/vendor/repack/dev-server/src/plugins/wss/wssPlugin.js.map +1 -1
- package/dist/vendor/repack/dev-server/src/types.js.map +1 -1
- package/package.json +13 -8
- package/src/dev/clientInjectPlugin.ts +112 -0
- package/src/dev/createDevServer.ts +59 -47
- package/src/dev/types.ts +1 -0
- package/src/dev.ts +169 -97
- package/src/vendor/repack/dev-server/src/createServer.ts +16 -7
- package/src/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.ts +1 -5
- package/src/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.ts +1 -1
- package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.ts +4 -1
- package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.ts +3 -0
- package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.ts +2 -2
- package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.ts +3 -0
- package/src/vendor/repack/dev-server/src/plugins/wss/wssPlugin.ts +5 -5
- package/src/vendor/repack/dev-server/src/types.ts +4 -0
- package/types/dev/WebpackHMRClient.d.ts +1 -0
- package/types/dev/clientInjectPlugin.d.ts +7 -0
- package/types/dev/createDevServer.d.ts +4 -1
- package/types/dev/createDevServer.d.ts.map +1 -1
- package/types/dev/types.d.ts +5 -0
- package/types/dev.d.ts.map +1 -1
- package/types/vendor/repack/dev-server/src/createServer.d.ts.map +1 -1
- package/types/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.d.ts.map +1 -1
- package/types/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.d.ts.map +1 -1
- package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.d.ts.map +1 -1
- package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.d.ts.map +1 -1
- package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.d.ts.map +1 -1
- package/types/vendor/repack/dev-server/src/plugins/wss/wssPlugin.d.ts +2 -0
- package/types/vendor/repack/dev-server/src/plugins/wss/wssPlugin.d.ts.map +1 -1
- package/types/vendor/repack/dev-server/src/types.d.ts +3 -0
- package/types/vendor/repack/dev-server/src/types.d.ts.map +1 -1
- package/src/vendor/repack/dev-server/vendor/metro-inspector-proxy/src/Device.cjs +0 -1
- package/src/vendor/repack/dev-server/vendor/metro-inspector-proxy/src/Device.js +0 -1
package/src/dev.ts
CHANGED
|
@@ -1,122 +1,129 @@
|
|
|
1
1
|
import { readFile } from 'fs/promises'
|
|
2
|
-
import { AddressInfo } from 'net'
|
|
3
2
|
import { join } from 'path'
|
|
4
3
|
|
|
5
4
|
import { CLIResolvedOptions } from '@tamagui/types'
|
|
6
|
-
import
|
|
5
|
+
import viteReactPlugin, { swcTransform } from '@tamagui/vite-native-swc'
|
|
6
|
+
import {
|
|
7
|
+
nativeBabelTransform,
|
|
8
|
+
nativePlugin,
|
|
9
|
+
nativePrebuild,
|
|
10
|
+
tamaguiPlugin,
|
|
11
|
+
} from '@tamagui/vite-plugin'
|
|
7
12
|
import chalk from 'chalk'
|
|
8
|
-
import fs, {
|
|
9
|
-
import { build, createServer } from 'vite'
|
|
13
|
+
import fs, { pathExists } from 'fs-extra'
|
|
14
|
+
import { InlineConfig, build, createServer, resolveConfig } from 'vite'
|
|
10
15
|
|
|
16
|
+
import { clientInjectionsPlugin } from './dev/clientInjectPlugin'
|
|
11
17
|
import { createDevServer } from './dev/createDevServer'
|
|
18
|
+
import { HMRListener } from './dev/types'
|
|
12
19
|
import { registerDispose } from './utils'
|
|
13
20
|
|
|
14
21
|
export const dev = async (options: CLIResolvedOptions) => {
|
|
15
22
|
const { root, mode, paths } = options
|
|
16
|
-
|
|
17
|
-
process.chdir(process.cwd())
|
|
23
|
+
const projectRoot = root
|
|
18
24
|
|
|
19
25
|
const packageRootDir = join(__dirname, '..')
|
|
20
26
|
|
|
21
27
|
// build react-native
|
|
22
28
|
await nativePrebuild()
|
|
23
29
|
|
|
30
|
+
// react native port (it scans 19000 +5)
|
|
31
|
+
const port = options.port || 8081
|
|
32
|
+
|
|
24
33
|
const plugins = [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
34
|
+
tamaguiPlugin({
|
|
35
|
+
...options.tamaguiOptions,
|
|
36
|
+
target: 'native',
|
|
37
|
+
}),
|
|
38
|
+
viteReactPlugin({
|
|
39
|
+
tsDecorators: true,
|
|
40
|
+
}),
|
|
41
|
+
nativePlugin({
|
|
42
|
+
port,
|
|
43
|
+
}),
|
|
30
44
|
]
|
|
31
45
|
|
|
32
|
-
|
|
46
|
+
if (process.env.IS_TAMAGUI_DEV) {
|
|
47
|
+
const inspect = require('vite-plugin-inspect')
|
|
48
|
+
console.log('🐞 enabling inspect plugin')
|
|
49
|
+
plugins.push(inspect())
|
|
50
|
+
}
|
|
33
51
|
|
|
34
|
-
|
|
52
|
+
const hmrListeners: HMRListener[] = []
|
|
53
|
+
const hotUpdatedCJSFiles = new Map<string, string>()
|
|
35
54
|
|
|
36
|
-
|
|
37
|
-
root
|
|
55
|
+
let serverConfig = {
|
|
56
|
+
root,
|
|
38
57
|
mode: 'development',
|
|
58
|
+
clearScreen: false,
|
|
59
|
+
appType: 'custom',
|
|
39
60
|
plugins,
|
|
40
61
|
server: {
|
|
62
|
+
cors: true,
|
|
41
63
|
port: options.port,
|
|
42
|
-
host: options.host || '
|
|
64
|
+
host: options.host || '127.0.0.1',
|
|
43
65
|
},
|
|
66
|
+
} satisfies InlineConfig
|
|
67
|
+
|
|
68
|
+
// first resolve config so we can pass into client plugin, then add client plugin:
|
|
69
|
+
const resolvedConfig = await resolveConfig(serverConfig, 'serve')
|
|
70
|
+
const viteRNClient = clientInjectionsPlugin(resolvedConfig)
|
|
71
|
+
|
|
72
|
+
plugins.push(viteRNClient)
|
|
73
|
+
|
|
74
|
+
serverConfig = {
|
|
75
|
+
...serverConfig,
|
|
76
|
+
plugins: [...serverConfig.plugins],
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const server = await createServer(serverConfig)
|
|
80
|
+
|
|
81
|
+
// @ts-ignore
|
|
82
|
+
resolvedConfig.plugins = resolvedConfig.plugins.filter((x) => {
|
|
83
|
+
if (x.name === 'vite:import-analysis') {
|
|
84
|
+
return false
|
|
85
|
+
}
|
|
86
|
+
return true
|
|
44
87
|
})
|
|
45
88
|
|
|
46
|
-
|
|
89
|
+
server.watcher.addListener('change', async (path) => {
|
|
90
|
+
const id = path.replace(process.cwd(), '')
|
|
47
91
|
|
|
48
|
-
|
|
49
|
-
|
|
92
|
+
if (!id.endsWith('tsx') && !id.endsWith('jsx')) {
|
|
93
|
+
return
|
|
94
|
+
}
|
|
50
95
|
|
|
51
|
-
|
|
96
|
+
const out = await server.transformRequest(id)
|
|
97
|
+
if (!out) return
|
|
52
98
|
|
|
53
|
-
|
|
54
|
-
const port = 8081
|
|
99
|
+
let contents = await nativeBabelTransform(out.code)
|
|
55
100
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
icon: './assets/icon.png',
|
|
64
|
-
userInterfaceStyle: 'light',
|
|
65
|
-
splash: {
|
|
66
|
-
image: './assets/splash.png',
|
|
67
|
-
resizeMode: 'contain',
|
|
68
|
-
backgroundColor: '#ffffff',
|
|
69
|
-
imageUrl: 'http://127.0.0.1:8081/assets/./assets/splash.png',
|
|
70
|
-
},
|
|
71
|
-
updates: { fallbackToCacheTimeout: 0 },
|
|
72
|
-
assetBundlePatterns: ['**/*'],
|
|
73
|
-
ios: { supportsTablet: true, bundleIdentifier: 'com.natew.myapp' },
|
|
74
|
-
android: {
|
|
75
|
-
package: 'com.tamagui.myapp',
|
|
76
|
-
adaptiveIcon: {
|
|
77
|
-
foregroundImage: './assets/adaptive-icon.png',
|
|
78
|
-
backgroundColor: '#FFFFFF',
|
|
79
|
-
foregroundImageUrl: 'http://127.0.0.1:8081/assets/./assets/adaptive-icon.png',
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
web: { favicon: './assets/favicon.png' },
|
|
83
|
-
extra: { eas: { projectId: '061b4470-78c7-4d6a-b850-8167fb0a3434' } },
|
|
84
|
-
_internal: {
|
|
85
|
-
isDebug: false,
|
|
86
|
-
projectRoot: '/Users/n8/tamagui/apps/kitchen-sink',
|
|
87
|
-
dynamicConfigPath: null,
|
|
88
|
-
staticConfigPath: '/Users/n8/tamagui/apps/kitchen-sink/app.json',
|
|
89
|
-
packageJsonPath: '/Users/n8/tamagui/apps/kitchen-sink/package.json',
|
|
90
|
-
},
|
|
91
|
-
sdkVersion: '47.0.0',
|
|
92
|
-
platforms: ['ios', 'android', 'web'],
|
|
93
|
-
iconUrl: `http://127.0.0.1:${port}/assets/./assets/icon.png`,
|
|
94
|
-
debuggerHost: `127.0.0.1:${port}`,
|
|
95
|
-
logUrl: `http://127.0.0.1:${port}/logs`,
|
|
96
|
-
developer: { tool: 'expo-cli', projectRoot: '/Users/n8/tamagui/apps/kitchen-sink' },
|
|
97
|
-
packagerOpts: { dev: true },
|
|
98
|
-
mainModuleName: 'index',
|
|
99
|
-
__flipperHack: 'React Native packager is running',
|
|
100
|
-
hostUri: `127.0.0.1:${port}`,
|
|
101
|
-
bundleUrl: `http://127.0.0.1:${port}/index.bundle?platform=ios&dev=true&hot=false&lazy=true`,
|
|
102
|
-
id: '@anonymous/myapp-473c4543-3c36-4786-9db1-c66a62ac9b78',
|
|
103
|
-
}
|
|
101
|
+
contents = contents
|
|
102
|
+
.replace('import.meta.hot.accept(() => {})', '')
|
|
103
|
+
.replace('react_jsx-dev-runtime', 'react/jsx-dev-runtime')
|
|
104
|
+
.replace(/\.js\?v=[0-9a-z]+"/gi, '"')
|
|
105
|
+
.replaceAll('/node_modules/.vite/deps/', '')
|
|
106
|
+
.replace(`import.meta.hot = (0, _client.createHotContext)("/src/App.tsx");`, '')
|
|
107
|
+
.replace('var _client = require("/@vite/client");', '')
|
|
104
108
|
|
|
105
|
-
|
|
106
|
-
|
|
109
|
+
contents = `exports = ((exports) => { ${contents}; return exports })({})`
|
|
110
|
+
|
|
111
|
+
hotUpdatedCJSFiles.set(id, contents)
|
|
112
|
+
})
|
|
113
|
+
|
|
114
|
+
await server.listen()
|
|
107
115
|
|
|
108
116
|
const dispose = await createDevServer(options, {
|
|
117
|
+
hotUpdatedCJSFiles,
|
|
118
|
+
listenForHMR(cb) {
|
|
119
|
+
hmrListeners.push(cb)
|
|
120
|
+
},
|
|
109
121
|
getIndexBundle: async function getBundle() {
|
|
110
122
|
const outputCode = await getBundleCode()
|
|
111
123
|
|
|
112
|
-
// so you can debug output easier
|
|
113
|
-
setTimeout(() => {
|
|
114
|
-
fs.writeFile(outputJsPath, outputCode)
|
|
115
|
-
})
|
|
116
|
-
|
|
117
124
|
return outputCode
|
|
118
125
|
},
|
|
119
|
-
indexJson:
|
|
126
|
+
indexJson: getIndexJsonReponse({ port, root }),
|
|
120
127
|
})
|
|
121
128
|
|
|
122
129
|
// rome-ignore lint/nursery/noConsoleLog: ok
|
|
@@ -132,25 +139,24 @@ export const dev = async (options: CLIResolvedOptions) => {
|
|
|
132
139
|
|
|
133
140
|
async function getBundleCode() {
|
|
134
141
|
// for easier quick testing things:
|
|
135
|
-
const tmpBundle = join(
|
|
142
|
+
const tmpBundle = join(process.cwd(), 'bundle.tmp.js')
|
|
136
143
|
if (await pathExists(tmpBundle)) {
|
|
137
144
|
// rome-ignore lint/nursery/noConsoleLog: <explanation>
|
|
138
|
-
console.log(
|
|
145
|
+
console.log(
|
|
146
|
+
'⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️ returning temp bundle ⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️',
|
|
147
|
+
tmpBundle
|
|
148
|
+
)
|
|
139
149
|
return await readFile(tmpBundle, 'utf-8')
|
|
140
150
|
}
|
|
141
151
|
|
|
142
152
|
// build app
|
|
143
153
|
const buildOutput = await build({
|
|
144
|
-
// @ts-ignore
|
|
145
154
|
plugins,
|
|
146
155
|
appType: 'custom',
|
|
147
156
|
root,
|
|
157
|
+
clearScreen: false,
|
|
148
158
|
build: {
|
|
149
|
-
ssr:
|
|
150
|
-
},
|
|
151
|
-
ssr: {
|
|
152
|
-
format: 'cjs',
|
|
153
|
-
target: 'node',
|
|
159
|
+
ssr: false,
|
|
154
160
|
},
|
|
155
161
|
mode: 'development',
|
|
156
162
|
define: {
|
|
@@ -159,17 +165,23 @@ export const dev = async (options: CLIResolvedOptions) => {
|
|
|
159
165
|
},
|
|
160
166
|
})
|
|
161
167
|
|
|
162
|
-
const
|
|
168
|
+
const appCodeIn = 'output' in buildOutput ? buildOutput.output[0].code : null
|
|
163
169
|
|
|
164
|
-
if (!
|
|
170
|
+
if (!appCodeIn) {
|
|
165
171
|
throw `❌`
|
|
166
172
|
}
|
|
167
173
|
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
174
|
+
const appCode = await nativeBabelTransform(appCodeIn)
|
|
175
|
+
|
|
176
|
+
const paths = [
|
|
177
|
+
join(process.cwd(), 'testing-area', 'react.js'),
|
|
178
|
+
join(process.cwd(), 'testing-area', 'react-jsx-runtime.js'),
|
|
179
|
+
join(process.cwd(), 'testing-area', 'react-native.js'),
|
|
180
|
+
]
|
|
181
|
+
|
|
182
|
+
const [react, reactJsxRuntime, reactNative] = await Promise.all(
|
|
183
|
+
paths.map((p) => readFile(p, 'utf-8'))
|
|
184
|
+
)
|
|
173
185
|
|
|
174
186
|
const reactCode = react.replace(
|
|
175
187
|
`module.exports = require_react_development();`,
|
|
@@ -179,16 +191,22 @@ export const dev = async (options: CLIResolvedOptions) => {
|
|
|
179
191
|
const reactJSXRuntimeCode = reactJsxRuntime.replace(
|
|
180
192
|
`module.exports = require_react_jsx_runtime_production_min();`,
|
|
181
193
|
`return require_react_jsx_runtime_production_min()`
|
|
194
|
+
// `module.exports = require_react_jsx_dev_runtime_development();`,
|
|
195
|
+
// `return require_react_jsx_dev_runtime_development();`
|
|
182
196
|
)
|
|
183
197
|
|
|
184
198
|
const reactNativeCode = reactNative
|
|
185
199
|
.replace(
|
|
186
200
|
`module.exports = require_react_native();`,
|
|
187
|
-
`
|
|
201
|
+
`require_ReactNative();
|
|
202
|
+
globalThis["ReactPressability"] = require_Pressability;
|
|
203
|
+
globalThis["ReactUsePressability"] = require_usePressability;
|
|
204
|
+
return require_react_native()`
|
|
188
205
|
)
|
|
206
|
+
// forcing onto global so i can re-thread it into require
|
|
189
207
|
.replace(
|
|
190
|
-
`
|
|
191
|
-
|
|
208
|
+
`ReactRefreshRuntime.injectIntoGlobalHook(global);`,
|
|
209
|
+
`globalThis['_ReactRefreshRuntime'] = ReactRefreshRuntime; ReactRefreshRuntime.injectIntoGlobalHook(global);`
|
|
192
210
|
)
|
|
193
211
|
|
|
194
212
|
const templateFile = join(packageRootDir, 'react-native-template.js')
|
|
@@ -197,6 +215,60 @@ export const dev = async (options: CLIResolvedOptions) => {
|
|
|
197
215
|
.replace(`// -- react --`, reactCode)
|
|
198
216
|
.replace(`// -- react-native --`, reactNativeCode)
|
|
199
217
|
.replace(`// -- react/jsx-runtime --`, reactJSXRuntimeCode)
|
|
200
|
-
.replace(
|
|
218
|
+
.replace(
|
|
219
|
+
`// -- app --`,
|
|
220
|
+
appCode.replace('"use strict";', '').replace('undefined.accept(() => {})', '')
|
|
221
|
+
)
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
function getIndexJsonReponse({ port, root }: { port: number | string; root }) {
|
|
226
|
+
return {
|
|
227
|
+
name: 'myapp',
|
|
228
|
+
slug: 'myapp',
|
|
229
|
+
scheme: 'myapp',
|
|
230
|
+
version: '1.0.0',
|
|
231
|
+
jsEngine: 'jsc',
|
|
232
|
+
orientation: 'portrait',
|
|
233
|
+
icon: './assets/icon.png',
|
|
234
|
+
userInterfaceStyle: 'light',
|
|
235
|
+
splash: {
|
|
236
|
+
image: './assets/splash.png',
|
|
237
|
+
resizeMode: 'contain',
|
|
238
|
+
backgroundColor: '#ffffff',
|
|
239
|
+
imageUrl: 'http://127.0.0.1:8081/assets/./assets/splash.png',
|
|
240
|
+
},
|
|
241
|
+
updates: { fallbackToCacheTimeout: 0 },
|
|
242
|
+
assetBundlePatterns: ['**/*'],
|
|
243
|
+
ios: { supportsTablet: true, bundleIdentifier: 'com.natew.myapp' },
|
|
244
|
+
android: {
|
|
245
|
+
package: 'com.tamagui.myapp',
|
|
246
|
+
adaptiveIcon: {
|
|
247
|
+
foregroundImage: './assets/adaptive-icon.png',
|
|
248
|
+
backgroundColor: '#FFFFFF',
|
|
249
|
+
foregroundImageUrl: 'http://127.0.0.1:8081/assets/./assets/adaptive-icon.png',
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
web: { favicon: './assets/favicon.png' },
|
|
253
|
+
extra: { eas: { projectId: '061b4470-78c7-4d6a-b850-8167fb0a3434' } },
|
|
254
|
+
_internal: {
|
|
255
|
+
isDebug: false,
|
|
256
|
+
projectRoot: root,
|
|
257
|
+
dynamicConfigPath: null,
|
|
258
|
+
staticConfigPath: join(root, 'app.json'),
|
|
259
|
+
packageJsonPath: join(root, 'package.json'),
|
|
260
|
+
},
|
|
261
|
+
sdkVersion: '47.0.0',
|
|
262
|
+
platforms: ['ios', 'android', 'web'],
|
|
263
|
+
iconUrl: `http://127.0.0.1:${port}/assets/./assets/icon.png`,
|
|
264
|
+
debuggerHost: `127.0.0.1:${port}`,
|
|
265
|
+
logUrl: `http://127.0.0.1:${port}/logs`,
|
|
266
|
+
developer: { tool: 'expo-cli', projectRoot: root },
|
|
267
|
+
packagerOpts: { dev: true },
|
|
268
|
+
mainModuleName: 'index',
|
|
269
|
+
__flipperHack: 'React Native packager is running',
|
|
270
|
+
hostUri: `127.0.0.1:${port}`,
|
|
271
|
+
bundleUrl: `http://127.0.0.1:${port}/index.bundle?platform=ios&dev=true&hot=false&lazy=true`,
|
|
272
|
+
id: '@anonymous/myapp-473c4543-3c36-4786-9db1-c66a62ac9b78',
|
|
201
273
|
}
|
|
202
274
|
}
|
|
@@ -61,6 +61,15 @@ export async function createServer(config: Server.Config) {
|
|
|
61
61
|
},
|
|
62
62
|
})
|
|
63
63
|
|
|
64
|
+
// fuck delegates
|
|
65
|
+
instance.register(async (inst) => {
|
|
66
|
+
inst.get('/file', async (req, reply) => {
|
|
67
|
+
const query = req.query as Record<string, string>
|
|
68
|
+
const source = delegate.hotFiles.getSource(query.file)
|
|
69
|
+
reply.send(source)
|
|
70
|
+
})
|
|
71
|
+
})
|
|
72
|
+
|
|
64
73
|
// Register plugins
|
|
65
74
|
await instance.register(fastifySensible)
|
|
66
75
|
await instance.register(wssPlugin, {
|
|
@@ -82,12 +91,13 @@ export async function createServer(config: Server.Config) {
|
|
|
82
91
|
options: config.options,
|
|
83
92
|
})
|
|
84
93
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
94
|
+
const debuggerAppPath = (await import('@callstack/repack-debugger-app')).default
|
|
95
|
+
|
|
96
|
+
await instance.register(fastifyStatic, {
|
|
97
|
+
root: debuggerAppPath,
|
|
98
|
+
prefix: '/debugger-ui',
|
|
99
|
+
prefixAvoidTrailingSlash: true,
|
|
100
|
+
})
|
|
91
101
|
|
|
92
102
|
// below is to prevent showing `GET 400 /favicon.ico`
|
|
93
103
|
// errors in console when requesting the bundle via browser
|
|
@@ -105,7 +115,6 @@ export async function createServer(config: Server.Config) {
|
|
|
105
115
|
})
|
|
106
116
|
|
|
107
117
|
// Register routes
|
|
108
|
-
instance.head('/', async () => '')
|
|
109
118
|
instance.get('/', async () => delegate.messages.getHello())
|
|
110
119
|
instance.get('/status', async () => delegate.messages.getStatus())
|
|
111
120
|
|
|
@@ -33,20 +33,16 @@ export class WebSocketRouter {
|
|
|
33
33
|
let matched = false
|
|
34
34
|
|
|
35
35
|
if (pathname === '/inspector/device') {
|
|
36
|
+
// ignore
|
|
36
37
|
// rome-ignore lint/nursery/noConsoleLog: <explanation>
|
|
37
|
-
console.log('ignoring', pathname)
|
|
38
38
|
// socket.destroy()
|
|
39
39
|
return
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
// rome-ignore lint/nursery/noConsoleLog: <explanation>
|
|
43
|
-
console.log('check for upgrade', pathname)
|
|
44
|
-
|
|
45
42
|
for (const server of this.servers) {
|
|
46
43
|
if (server.shouldUpgrade(pathname)) {
|
|
47
44
|
matched = true
|
|
48
45
|
// rome-ignore lint/nursery/noConsoleLog: <explanation>
|
|
49
|
-
console.log('matched', pathname)
|
|
50
46
|
server.upgrade(request, socket, head)
|
|
51
47
|
break
|
|
52
48
|
}
|
|
@@ -2,9 +2,9 @@ import type { IncomingMessage } from 'http'
|
|
|
2
2
|
import { URL } from 'url'
|
|
3
3
|
|
|
4
4
|
import type { FastifyInstance, FastifyReply, FastifyRequest, LogLevel } from 'fastify'
|
|
5
|
+
import Device from 'metro-inspector-proxy/src/Device'
|
|
5
6
|
import WebSocket from 'ws'
|
|
6
7
|
|
|
7
|
-
import Device from '../../../../vendor/metro-inspector-proxy/src/Device'
|
|
8
8
|
import { Server } from '../../../types'
|
|
9
9
|
import { WebSocketServer } from '../WebSocketServer'
|
|
10
10
|
|
|
@@ -60,7 +60,10 @@ export class WebSocketApiServer extends WebSocketServer {
|
|
|
60
60
|
this.clients.delete(clientId)
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
socket.addEventListener('error',
|
|
63
|
+
socket.addEventListener('error', () => {
|
|
64
|
+
console.log('error1')
|
|
65
|
+
onClose()
|
|
66
|
+
})
|
|
64
67
|
socket.addEventListener('close', onClose)
|
|
65
68
|
}
|
|
66
69
|
}
|
|
@@ -69,6 +69,9 @@ export class WebSocketEventsServer extends WebSocketServer {
|
|
|
69
69
|
parseMessage(data: string): Command | undefined {
|
|
70
70
|
try {
|
|
71
71
|
const message = JSON.parse(data)
|
|
72
|
+
|
|
73
|
+
console.log('event message', message)
|
|
74
|
+
|
|
72
75
|
if (message.version === WebSocketEventsServer.PROTOCOL_VERSION) {
|
|
73
76
|
return message
|
|
74
77
|
}
|
|
@@ -42,7 +42,7 @@ export class WebSocketHMRServer extends WebSocketServer {
|
|
|
42
42
|
key.platform !== platform ||
|
|
43
43
|
!(clientIds ?? [key.clientId]).includes(key.clientId)
|
|
44
44
|
) {
|
|
45
|
-
|
|
45
|
+
continue
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
try {
|
|
@@ -65,7 +65,7 @@ export class WebSocketHMRServer extends WebSocketServer {
|
|
|
65
65
|
*/
|
|
66
66
|
onConnection(socket: WebSocket, request: IncomingMessage) {
|
|
67
67
|
const { searchParams } = new URL(request.url || '', 'http://localhost')
|
|
68
|
-
const platform = searchParams.get('platform')
|
|
68
|
+
const platform = searchParams.get('platform') || 'ios'
|
|
69
69
|
|
|
70
70
|
if (!platform) {
|
|
71
71
|
this.fastify.log.info({
|
|
@@ -109,6 +109,9 @@ export class WebSocketMessageServer extends WebSocketServer {
|
|
|
109
109
|
}
|
|
110
110
|
try {
|
|
111
111
|
const message = JSON.parse(data) as Partial<ReactNativeMessage>
|
|
112
|
+
|
|
113
|
+
console.log('message', message)
|
|
114
|
+
|
|
112
115
|
if (message.version === WebSocketMessageServer.PROTOCOL_VERSION.toString()) {
|
|
113
116
|
return message
|
|
114
117
|
}
|
|
@@ -2,7 +2,7 @@ import type { FastifyInstance } from 'fastify'
|
|
|
2
2
|
import fastifyPlugin from 'fastify-plugin'
|
|
3
3
|
|
|
4
4
|
import type { Server } from '../../types'
|
|
5
|
-
|
|
5
|
+
import { HermesInspectorProxy } from './servers/HermesInspectorProxy'
|
|
6
6
|
import { WebSocketApiServer } from './servers/WebSocketApiServer'
|
|
7
7
|
import { WebSocketDebuggerServer } from './servers/WebSocketDebuggerServer'
|
|
8
8
|
import { WebSocketDevClientServer } from './servers/WebSocketDevClientServer'
|
|
@@ -18,7 +18,7 @@ declare module 'fastify' {
|
|
|
18
18
|
devClientServer: WebSocketDevClientServer
|
|
19
19
|
messageServer: WebSocketMessageServer
|
|
20
20
|
eventsServer: WebSocketEventsServer
|
|
21
|
-
|
|
21
|
+
hermesInspectorProxy: HermesInspectorProxy
|
|
22
22
|
apiServer: WebSocketApiServer
|
|
23
23
|
hmrServer: WebSocketHMRServer
|
|
24
24
|
router: WebSocketRouter
|
|
@@ -44,7 +44,7 @@ async function wssPlugin(
|
|
|
44
44
|
const eventsServer = new WebSocketEventsServer(instance, {
|
|
45
45
|
webSocketMessageServer: messageServer,
|
|
46
46
|
})
|
|
47
|
-
|
|
47
|
+
const hermesInspectorProxy = new HermesInspectorProxy(instance, options)
|
|
48
48
|
const apiServer = new WebSocketApiServer(instance)
|
|
49
49
|
const hmrServer = new WebSocketHMRServer(instance, delegate.hmr)
|
|
50
50
|
|
|
@@ -52,7 +52,7 @@ async function wssPlugin(
|
|
|
52
52
|
router.registerServer(devClientServer)
|
|
53
53
|
router.registerServer(messageServer)
|
|
54
54
|
router.registerServer(eventsServer)
|
|
55
|
-
|
|
55
|
+
router.registerServer(hermesInspectorProxy)
|
|
56
56
|
router.registerServer(apiServer)
|
|
57
57
|
router.registerServer(hmrServer)
|
|
58
58
|
|
|
@@ -61,7 +61,7 @@ async function wssPlugin(
|
|
|
61
61
|
devClientServer,
|
|
62
62
|
messageServer,
|
|
63
63
|
eventsServer,
|
|
64
|
-
|
|
64
|
+
hermesInspectorProxy,
|
|
65
65
|
apiServer,
|
|
66
66
|
hmrServer,
|
|
67
67
|
router,
|
|
@@ -53,6 +53,10 @@ export namespace Server {
|
|
|
53
53
|
* A complete delegate with implementations for all server functionalities.
|
|
54
54
|
*/
|
|
55
55
|
export interface Delegate {
|
|
56
|
+
hotFiles: {
|
|
57
|
+
getSource: (path: string) => string
|
|
58
|
+
}
|
|
59
|
+
|
|
56
60
|
/** A compiler delegate. */
|
|
57
61
|
compiler: CompilerDelegate
|
|
58
62
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=WebpackHMRClient.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Plugin, ResolvedConfig } from 'vite';
|
|
2
|
+
/**
|
|
3
|
+
* some values used by the client needs to be dynamically injected by the server
|
|
4
|
+
* @server-only
|
|
5
|
+
*/
|
|
6
|
+
export declare function clientInjectionsPlugin(config: ResolvedConfig): Plugin;
|
|
7
|
+
//# sourceMappingURL=clientInjectPlugin.d.ts.map
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { CLIResolvedOptions } from '@tamagui/types';
|
|
2
|
-
|
|
2
|
+
import { HMRListener } from './types';
|
|
3
|
+
export declare function createDevServer(options: CLIResolvedOptions, { indexJson, listenForHMR, getIndexBundle, hotUpdatedCJSFiles, }: {
|
|
3
4
|
indexJson: Object;
|
|
4
5
|
getIndexBundle: () => Promise<string>;
|
|
6
|
+
listenForHMR: (cb: HMRListener) => void;
|
|
7
|
+
hotUpdatedCJSFiles: Map<string, string>;
|
|
5
8
|
}): Promise<() => Promise<void>>;
|
|
6
9
|
/**
|
|
7
10
|
* Represent Hot Module Replacement Update body.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDevServer.d.ts","sourceRoot":"","sources":["../../src/dev/createDevServer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAKnD,wBAAsB,eAAe,CACnC,OAAO,EAAE,kBAAkB,EAC3B,EACE,SAAS,EACT,cAAc,
|
|
1
|
+
{"version":3,"file":"createDevServer.d.ts","sourceRoot":"","sources":["../../src/dev/createDevServer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAKnD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAErC,wBAAsB,eAAe,CACnC,OAAO,EAAE,kBAAkB,EAC3B,EACE,SAAS,EACT,YAAY,EACZ,cAAc,EACd,kBAAkB,GACnB,EAAE;IACD,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;IACrC,YAAY,EAAE,CAAC,EAAE,EAAE,WAAW,KAAK,IAAI,CAAA;IACvC,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACxC,gCAsLF;AAMD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,GAAG,CAAA;IACb,MAAM,EAAE,GAAG,CAAA;IACX,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAChC;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,UAAU,GAAG,OAAO,GAAG,MAAM,CAAA;IACrC,IAAI,EAAE,cAAc,GAAG,IAAI,CAAA;CAC5B"}
|
package/types/dev.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../src/dev.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../src/dev.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAiBnD,eAAO,MAAM,GAAG,YAAmB,kBAAkB,kBA0MpD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createServer.d.ts","sourceRoot":"","sources":["../../../../../src/vendor/repack/dev-server/src/createServer.ts"],"names":[],"mappings":";AAcA,OAAO,EAAY,MAAM,EAAE,MAAM,SAAS,CAAA;AAE1C;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM;;;;
|
|
1
|
+
{"version":3,"file":"createServer.d.ts","sourceRoot":"","sources":["../../../../../src/vendor/repack/dev-server/src/createServer.ts"],"names":[],"mappings":";AAcA,OAAO,EAAY,MAAM,EAAE,MAAM,SAAS,CAAA;AAE1C;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM;;;;GAiHvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebSocketRouter.d.ts","sourceRoot":"","sources":["../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD;;;;;;;;;GASG;AACH,qBAAa,eAAe;IAUd,OAAO,CAAC,OAAO;IAT3B,kDAAkD;IAClD,SAAS,CAAC,OAAO,EAAE,eAAe,EAAE,CAAK;IAEzC;;;;;OAKG;gBACiB,OAAO,EAAE,eAAe;
|
|
1
|
+
{"version":3,"file":"WebSocketRouter.d.ts","sourceRoot":"","sources":["../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD;;;;;;;;;GASG;AACH,qBAAa,eAAe;IAUd,OAAO,CAAC,OAAO;IAT3B,kDAAkD;IAClD,SAAS,CAAC,OAAO,EAAE,eAAe,EAAE,CAAK;IAEzC;;;;;OAKG;gBACiB,OAAO,EAAE,eAAe;IAmC5C;;;;;;OAMG;IACH,cAAc,CAAC,CAAC,SAAS,eAAe,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC;CAIxD"}
|
package/types/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HermesInspectorProxy.d.ts","sourceRoot":"","sources":["../../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAG3C,OAAO,KAAK,EAAE,eAAe,EAA0C,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"HermesInspectorProxy.d.ts","sourceRoot":"","sources":["../../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAG3C,OAAO,KAAK,EAAE,eAAe,EAA0C,MAAM,SAAS,CAAA;AAEtF,OAAO,SAAS,MAAM,IAAI,CAAA;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAuBpD,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CAAG;AAE9D,qBAAa,oBAAqB,SAAQ,eAAe;IAKjB,OAAO,CAAC,MAAM;IAJpD,OAAO,CAAC,OAAO,CAAyB;IACxC,OAAO,CAAC,aAAa,CAAI;IACzB,SAAgB,UAAU,EAAE,MAAM,CAAA;gBAEtB,OAAO,EAAE,eAAe,EAAU,MAAM,EAAE,oBAAoB;IAM1E,OAAO,CAAC,KAAK;IAsCb,OAAO,CAAC,oBAAoB;IAkB5B;;;;;OAKG;IACH,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe;CAkDzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebSocketApiServer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,SAAS,MAAM,IAAI,CAAA;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD;;;;;GAKG;AACH,qBAAa,kBAAmB,SAAQ,eAAe;IACrD,OAAO,CAAC,OAAO,CAA+B;IAC9C,OAAO,CAAC,YAAY,CAAI;IAExB;;;;;OAKG;gBACS,OAAO,EAAE,eAAe;IAIpC;;;;OAIG;IACH,IAAI,CAAC,KAAK,EAAE,GAAG;IAYf;;;;OAIG;IACH,YAAY,CAAC,MAAM,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"WebSocketApiServer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,SAAS,MAAM,IAAI,CAAA;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD;;;;;GAKG;AACH,qBAAa,kBAAmB,SAAQ,eAAe;IACrD,OAAO,CAAC,OAAO,CAA+B;IAC9C,OAAO,CAAC,YAAY,CAAI;IAExB;;;;;OAKG;gBACS,OAAO,EAAE,eAAe;IAIpC;;;;OAIG;IACH,IAAI,CAAC,KAAK,EAAE,GAAG;IAYf;;;;OAIG;IACH,YAAY,CAAC,MAAM,EAAE,SAAS;CAqB/B"}
|
package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebSocketEventsServer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,SAAS,MAAM,IAAI,CAAA;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEjE;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,uFAAuF;IACvF,sBAAsB,EAAE,sBAAsB,CAAA;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,SAAS,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,GAAG,CAAA;CACb;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,GAAG,CAAA;CACX;AAED;;;;;;GAMG;AACH,qBAAa,qBAAsB,SAAQ,eAAe;IAalB,OAAO,CAAC,MAAM;IAZpD,MAAM,CAAC,QAAQ,CAAC,gBAAgB,KAAI;IAEpC,OAAO,CAAC,OAAO,CAA+B;IAC9C,OAAO,CAAC,YAAY,CAAI;IAExB;;;;;;OAMG;gBACS,OAAO,EAAE,eAAe,EAAU,MAAM,EAAE,2BAA2B;IAQjF;;;;;OAKG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;
|
|
1
|
+
{"version":3,"file":"WebSocketEventsServer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,SAAS,MAAM,IAAI,CAAA;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEjE;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,uFAAuF;IACvF,sBAAsB,EAAE,sBAAsB,CAAA;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,SAAS,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,GAAG,CAAA;CACb;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,GAAG,CAAA;CACX;AAED;;;;;;GAMG;AACH,qBAAa,qBAAsB,SAAQ,eAAe;IAalB,OAAO,CAAC,MAAM;IAZpD,MAAM,CAAC,QAAQ,CAAC,gBAAgB,KAAI;IAEpC,OAAO,CAAC,OAAO,CAA+B;IAC9C,OAAO,CAAC,YAAY,CAAI;IAExB;;;;;;OAMG;gBACS,OAAO,EAAE,eAAe,EAAU,MAAM,EAAE,2BAA2B;IAQjF;;;;;OAKG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;IAuB/C;;;;;OAKG;IACH,gBAAgB,CAAC,OAAO,EAAE,YAAY;IAoCtC;;;;OAIG;IACH,cAAc,CAAC,KAAK,EAAE,YAAY;IAwBlC;;;;OAIG;IACH,YAAY,CAAC,MAAM,EAAE,SAAS;CAqC/B"}
|
package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebSocketMessageServer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAG3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,SAAS,MAAM,IAAI,CAAA;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,EAAE,CAAC,EAAE,mBAAmB,CAAA;IACxB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,GAAG,CAAA;IACZ,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC7B;AAED,KAAK,uBAAuB,GAAG,SAAS,GAAG;IAAE,UAAU,CAAC,EAAE,eAAe,CAAA;CAAE,CAAA;AAE3E;;;;;;;GAOG;AACH,qBAAa,sBAAuB,SAAQ,eAAe;IACzD,MAAM,CAAC,QAAQ,CAAC,gBAAgB,KAAI;IAEpC;;;;;;OAMG;IACH,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAQvD;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAIrD;;;;;OAKG;IACH,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAStD,OAAO,CAAC,OAAO,CAA6C;IAC5D,OAAO,CAAC,YAAY,CAAI;IAExB;;;;;OAKG;gBACS,OAAO,EAAE,eAAe;IAIpC;;;;;;OAMG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,kBAAkB,CAAC,GAAG,SAAS;
|
|
1
|
+
{"version":3,"file":"WebSocketMessageServer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAG3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,SAAS,MAAM,IAAI,CAAA;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,EAAE,CAAC,EAAE,mBAAmB,CAAA;IACxB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,GAAG,CAAA;IACZ,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC7B;AAED,KAAK,uBAAuB,GAAG,SAAS,GAAG;IAAE,UAAU,CAAC,EAAE,eAAe,CAAA;CAAE,CAAA;AAE3E;;;;;;;GAOG;AACH,qBAAa,sBAAuB,SAAQ,eAAe;IACzD,MAAM,CAAC,QAAQ,CAAC,gBAAgB,KAAI;IAEpC;;;;;;OAMG;IACH,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAQvD;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAIrD;;;;;OAKG;IACH,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAStD,OAAO,CAAC,OAAO,CAA6C;IAC5D,OAAO,CAAC,YAAY,CAAI;IAExB;;;;;OAKG;gBACS,OAAO,EAAE,eAAe;IAIpC;;;;;;OAMG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,kBAAkB,CAAC,GAAG,SAAS;IA4BhF;;;;;;OAMG;IACH,eAAe,CAAC,QAAQ,EAAE,MAAM;IAQhC;;;;;;;OAOG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,KAAK;IAqChF;;;;;;OAMG;IACH,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAqBrE;;;;;;OAMG;IACH,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAgBpD;;;;;;OAMG;IACH,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC;IA2C3E;;;;;OAKG;IACH,aAAa,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAgCrF;;;;;OAKG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAItD;;;;;OAKG;IACH,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe;CAuDzD"}
|