You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 22cacf6
Browse filesBrowse the repository at this point in the historyBrowse files
Summary:
Update Metro repository links, workflow names, package metadata, and the website deployment guard after the repository moved to the React organization. This makes contribution, documentation, release, and deployment tooling consistently target the canonical repository.
___
Differential Revision: D119517083
fbshipit-source-id: 263150033e05ab36331cbd8f6cd29dda92d19561
[](https://twitter.com/intent/follow?screen_name=MetroBundler)
8
8
9
9
🚇 The JavaScript bundler for React Native.
@@ -32,9 +32,9 @@ Metro was previously part of the [react-native](https://github.com/facebook/reac
32
32
33
33
Meta has adopted a Code of Conduct that we expect project participants to adhere to. Please read [the full text](https://code.fb.com/codeofconduct) so that you can understand what actions will and will not be tolerated.
Read our [contributing guide](https://github.com/facebook/metro/blob/main/CONTRIBUTING.md) to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes to Metro.
37
+
Read our [contributing guide](https://github.com/react/metro/blob/main/CONTRIBUTING.md) to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes to Metro.
Copy file name to clipboardExpand all lines: docs/Configuration.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,15 +135,15 @@ Type: `string`
135
135
136
136
The absolute path of a module (or a package name resolvable from the `metro` package) that implements a transformer.
137
137
138
-
See the implementation of Metro's default transformer ([`metro-transform-worker`](https://github.com/facebook/metro/blob/main/packages/metro-transform-worker/src/index.js)) for more information about the transformer interface.
138
+
See the implementation of Metro's default transformer ([`metro-transform-worker`](https://github.com/react/metro/blob/main/packages/metro-transform-worker/src/index.js)) for more information about the transformer interface.
Used to report the status of the bundler during the bundling process. The default implementation prints most events to the terminal.
145
145
146
-
See also the [definition of `ReportableEvent`](https://github.com/facebook/metro/blob/main/packages/metro/src/lib/reporting.js) in Metro's source code.
146
+
See also the [definition of `ReportableEvent`](https://github.com/react/metro/blob/main/packages/metro/src/lib/reporting.js) in Metro's source code.
147
147
148
148
#### `resetCache`
149
149
@@ -198,11 +198,11 @@ function unstable_perfLoggerFactory(
198
198
};
199
199
```
200
200
201
-
***`type`** Type of event being logged, e.g. `'STARTUP'`, `'BUNDLING_REQUEST'`, `'HMR'`. See type definition of [PerfLoggerFactory](https://github.com/facebook/metro/blob/main/packages/metro-config/src/types.js) for a full list of event types.
201
+
***`type`** Type of event being logged, e.g. `'STARTUP'`, `'BUNDLING_REQUEST'`, `'HMR'`. See type definition of [PerfLoggerFactory](https://github.com/react/metro/blob/main/packages/metro-config/src/types.js) for a full list of event types.
202
202
***`opts`**
203
203
***`key`**: An opaque identifier to distinguish between instances of an event type (e.g. multiple, possibly concurrent, HMR requests).
204
204
205
-
`unstable_perfLoggerFactory` should return an object implementing the [RootPerfLogger](https://github.com/facebook/metro/blob/main/packages/metro-config/src/types.js) interface. For example, a factory function returning a no-op RootPerfLogger could be implemented as follows:
205
+
`unstable_perfLoggerFactory` should return an object implementing the [RootPerfLogger](https://github.com/react/metro/blob/main/packages/metro-config/src/types.js) interface. For example, a factory function returning a no-op RootPerfLogger could be implemented as follows:
The list of asset file extensions to include in the bundle. For example, including `'ttf'` allows Metro bundles to reference `.ttf`files. This is used primarily to enable React Native's [image asset support](https://reactnative.dev/docs/images). The default list includes many common image, video and audio file extensions. See [Metro's source code](https://github.com/facebook/metro/blob/main/packages/metro-config/src/defaults/defaults.js#L16) for the full list.
234
+
The list of asset file extensions to include in the bundle. For example, including `'ttf'` allows Metro bundles to reference `.ttf`files. This is used primarily to enable React Native's [image asset support](https://reactnative.dev/docs/images). The default list includes many common image, video and audio file extensions. See [Metro's source code](https://github.com/react/metro/blob/main/packages/metro-config/src/defaults/defaults.js#L16) for the full list.
235
235
236
236
#### `assetResolutions`
237
237
@@ -472,7 +472,7 @@ In a future release of Metro, this option will be removed.
472
472
473
473
Type: `string`
474
474
475
-
The name of a module that provides the `asyncRequire` function, which is used to implement [dynamic `import()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import) at runtime. Defaults to [`metro-runtime/src/modules/asyncRequire`](https://github.com/facebook/metro/blob/main/packages/metro-runtime/src/modules/asyncRequire.js).
475
+
The name of a module that provides the `asyncRequire` function, which is used to implement [dynamic `import()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import) at runtime. Defaults to [`metro-runtime/src/modules/asyncRequire`](https://github.com/react/metro/blob/main/packages/metro-runtime/src/modules/asyncRequire.js).
476
476
477
477
:::note
478
478
The module named by `asyncRequireModulePath` is [resolved](./Resolution.md) relative to the module containing the original `import()` call. In particular, assuming the default value of `asyncRequireModulePath` is in use, the project must have a compatible version of `metro-runtime` installed in `node_modules`.
@@ -583,7 +583,7 @@ Type: `string`
583
583
584
584
The name of a module that compiles code with Babel, returning an AST and optional metadata. Defaults to `metro-babel-transformer`.
585
585
586
-
Refer to the source code of [`metro-babel-transformer`](https://github.com/facebook/metro/blob/main/packages/metro-babel-transformer/src/index.js) and [`@react-native/metro-babel-transformer`](https://github.com/facebook/react-native/blob/main/packages/react-native-babel-transformer/src/index.js) for details on implementing a custom Babel transformer.
586
+
Refer to the source code of [`metro-babel-transformer`](https://github.com/react/metro/blob/main/packages/metro-babel-transformer/src/index.js) and [`@react-native/metro-babel-transformer`](https://github.com/facebook/react-native/blob/main/packages/react-native-babel-transformer/src/index.js) for details on implementing a custom Babel transformer.
587
587
588
588
:::note
589
589
This option only has an effect under the default [`transformerPath`](#transformerpath). Custom transformers may ignore it.
@@ -719,7 +719,7 @@ The input may be either an absolute URL (e.g. `https://example.com/foo/bar?baz=q
719
719
720
720
Type:`boolean`
721
721
722
-
Enable forwarding of`client_log`events (when client logs are [configured](https://github.com/facebook/metro/blob/614ad14a85b22958129ee94e04376b096f03ccb1/packages/metro/src/lib/createWebsocketServer.js#L20)) to the reporter. Defaults to `true`.
722
+
Enable forwarding of`client_log`events (when client logs are [configured](https://github.com/react/metro/blob/614ad14a85b22958129ee94e04376b096f03ccb1/packages/metro/src/lib/createWebsocketServer.js#L20)) to the reporter. Defaults to `true`.
Copy file name to clipboardExpand all lines: docs/PackageExports.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Introduced in Node.js 12.7.0, Package Exports is a modern approach for npm packa
9
9
10
10
`exports` also supports different targets for a given subpath dependent on [*conditions*](https://nodejs.org/api/packages.html#conditional-exports), such as whether building for a browser or Node.js, and whether `import` or `require` is used by the consumer.
11
11
12
-
Package Exports support has been enabled by default in Metro since [0.82](https://github.com/facebook/metro/releases/tag/v0.82.0) (or React Native 0.79).
12
+
Package Exports support has been enabled by default in Metro since [0.82](https://github.com/react/metro/releases/tag/v0.82.0) (or React Native 0.79).
-[RFC for Package Exports in Metro](https://github.com/react-native-community/discussions-and-proposals/blob/main/proposals/0534-metro-package-exports-support.md)
Copy file name to clipboardExpand all lines: docs/Resolution.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ The request is resolved to a built-in empty module, namely the one specified in
53
53
54
54
:::note
55
55
56
-
These are the rules that Metro's default resolver follows. Refer to [`metro-resolver`'s source code](https://github.com/facebook/metro/blob/main/packages/metro-resolver/src/resolve.js) for more details.
56
+
These are the rules that Metro's default resolver follows. Refer to [`metro-resolver`'s source code](https://github.com/react/metro/blob/main/packages/metro-resolver/src/resolve.js) for more details.
Copy file name to clipboardExpand all lines: docs/SourceMapFormat.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ Each metadata tuple is encoded as an array of zero or more entries. Each entry m
32
32
The indices in each metadata tuple are assigned as follows:
33
33
34
34
* Index 0: [Function map](#function-map) or `null`.
35
-
* In Metro, this is the result of calling [`generateFunctionMap`](https://github.com/facebook/metro/blob/main/packages/metro-source-map/src/generateFunctionMap.js) on the source AST.
35
+
* In Metro, this is the result of calling [`generateFunctionMap`](https://github.com/react/metro/blob/main/packages/metro-source-map/src/generateFunctionMap.js) on the source AST.
0 commit comments