forked from raedle/UNetExample
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmetro.config.js
More file actions
28 lines (26 loc) · 736 Bytes
/
metro.config.js
File metadata and controls
28 lines (26 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
// get defaults assetExts array
const defaultAssetExts =
require('metro-config/src/defaults/defaults').assetExts;
module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: true,
},
}),
},
resolver: {
// We will will continue to support 'pt' file extensions for until the beta
// release of PyTorch Live and then deprecate the support.
assetExts: [...defaultAssetExts, 'ptl', 'pt', 'json'],
},
};