main
js 31 lines 845 Bytes
Raw
1 /**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7 'use strict';
8
9 // Files that are transformed and can use ES6/Flow/JSX.
10 const esNextPaths = [
11 // Internal forwarding modules
12 'packages/*/*.js',
13 'packages/*/esm/*.js',
14 'packages/use-sync-external-store/shim/**/*.js',
15 'packages/use-sync-external-store/with-selector/**/*.js',
16 // Source files
17 'packages/*/src/**/*.js',
18 'packages/dom-event-testing-library/**/*.js',
19 'packages/shared/**/*.js',
20 // Shims and Flow environment
21 'scripts/flow/*.js',
22 'scripts/rollup/shims/**/*.js',
23 ];
24
25 // Files that we distribute on npm that should be ES5-only.
26 const es5Paths = ['packages/*/npm/**/*.js'];
27
28 module.exports = {
29 esNextPaths,
30 es5Paths,
31 };