@expo/cli 57.0.9 → 57.0.11
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/events/index.js +1 -1
- package/build/src/start/server/metro/MetroBundlerDevServer.js +2 -1
- package/build/src/start/server/metro/MetroBundlerDevServer.js.map +1 -1
- package/build/src/start/server/metro/withMetroMultiPlatform.js +7 -2
- package/build/src/start/server/metro/withMetroMultiPlatform.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 +16 -16
package/build/bin/cli
CHANGED
|
@@ -76,7 +76,7 @@ function getInitMetadata() {
|
|
|
76
76
|
return {
|
|
77
77
|
format: 'v0-jsonl',
|
|
78
78
|
// Version is added in the build script.
|
|
79
|
-
version: "57.0.
|
|
79
|
+
version: "57.0.11" ?? 'UNVERSIONED'
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
function getWellKnownTemporaryLogFile(projectRoot, command) {
|
|
@@ -196,7 +196,8 @@ class MetroBundlerDevServer extends _BundlerDevServer.BundlerDevServer {
|
|
|
196
196
|
// https://github.com/expo/expo/blob/0dffdb15/packages/%40expo/metro-config/src/serializer/serializeChunks.ts#L422-L439
|
|
197
197
|
// Alternatively, check whether `sourcesRoot` helps here
|
|
198
198
|
const artifactBasename = encodeURIComponent(_path().default.basename(artifactFilename) + '.map');
|
|
199
|
-
|
|
199
|
+
// Match only the trailing sourcemap directive
|
|
200
|
+
src = src.replace(/(?<=^|\n)\/\/# sourceMappingURL=[^\n]*(?=\s*$)/, `//# sourceMappingURL=${artifactBasename}`);
|
|
200
201
|
const parsedMap = typeof contents.map === 'string' ? JSON.parse(contents.map) : contents.map;
|
|
201
202
|
const mapData = {
|
|
202
203
|
...descriptor,
|