@expo/cli 0.22.3 → 0.22.4
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/build/bin/cli +1 -1
- package/build/src/start/server/metro/MetroBundlerDevServer.js +5 -3
- package/build/src/start/server/metro/MetroBundlerDevServer.js.map +1 -1
- package/build/src/start/server/metro/createServerComponentsMiddleware.js +2 -1
- package/build/src/start/server/metro/createServerComponentsMiddleware.js.map +1 -1
- package/build/src/start/server/metro/router.js +2 -1
- package/build/src/start/server/metro/router.js.map +1 -1
- package/build/src/start/server/middleware/ManifestMiddleware.js +1 -1
- package/build/src/start/server/middleware/ManifestMiddleware.js.map +1 -1
- package/build/src/start/server/middleware/metroOptions.js +8 -1
- package/build/src/start/server/middleware/metroOptions.js.map +1 -1
- package/build/src/utils/telemetry/clients/FetchClient.js +1 -1
- package/build/src/utils/telemetry/utils/context.js +1 -1
- package/package.json +3 -3
package/build/bin/cli
CHANGED
|
@@ -101,6 +101,7 @@ const _waitForMetroToObserveTypeScriptFile = require("./waitForMetroToObserveTyp
|
|
|
101
101
|
const _log = require("../../../log");
|
|
102
102
|
const _env1 = require("../../../utils/env");
|
|
103
103
|
const _errors = require("../../../utils/errors");
|
|
104
|
+
const _filePath = require("../../../utils/filePath");
|
|
104
105
|
const _port = require("../../../utils/port");
|
|
105
106
|
const _bundlerDevServer = require("../BundlerDevServer");
|
|
106
107
|
const _getStaticRenderFunctions = require("../getStaticRenderFunctions");
|
|
@@ -202,7 +203,7 @@ class MetroBundlerDevServer extends _bundlerDevServer.BundlerDevServer {
|
|
|
202
203
|
});
|
|
203
204
|
}
|
|
204
205
|
for (const route of manifest.apiRoutes){
|
|
205
|
-
const filepath = route.file
|
|
206
|
+
const filepath = _path().default.isAbsolute(route.file) ? route.file : _path().default.join(appDir, route.file);
|
|
206
207
|
const contents = await this.bundleApiRoute(filepath, {
|
|
207
208
|
platform
|
|
208
209
|
});
|
|
@@ -444,7 +445,7 @@ class MetroBundlerDevServer extends _bundlerDevServer.BundlerDevServer {
|
|
|
444
445
|
transformOptions
|
|
445
446
|
});
|
|
446
447
|
// Use fully qualified URL with all options to represent the file path that's used for source maps and HMR. This prevents collisions.
|
|
447
|
-
const filename = (0, _metroOptions.
|
|
448
|
+
const filename = (0, _metroOptions.createBundleUrlOsPath)({
|
|
448
449
|
...opts,
|
|
449
450
|
mainModuleName: resolvedEntryFilePath
|
|
450
451
|
});
|
|
@@ -573,7 +574,8 @@ class MetroBundlerDevServer extends _bundlerDevServer.BundlerDevServer {
|
|
|
573
574
|
bundle.artifacts.push(...cssModules);
|
|
574
575
|
const serverRoot = (0, _paths().getMetroServerRoot)(this.projectRoot);
|
|
575
576
|
// HACK: Maybe this should be done in the serializer.
|
|
576
|
-
const clientBoundariesAsOpaqueIds = clientBoundaries.map((boundary)
|
|
577
|
+
const clientBoundariesAsOpaqueIds = clientBoundaries.map((boundary)=>// NOTE(cedric): relative module specifiers / IDs should always be POSIX formatted
|
|
578
|
+
(0, _filePath.toPosixPath)(_path().default.relative(serverRoot, boundary)));
|
|
577
579
|
const moduleIdToSplitBundle = bundle.artifacts.map((artifact)=>{
|
|
578
580
|
var ref;
|
|
579
581
|
return (artifact == null ? void 0 : (ref = artifact.metadata) == null ? void 0 : ref.paths) && Object.values(artifact.metadata.paths);
|