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/react-interactions/**/*.js',
    
  20.   'packages/react-interactions/**/*.js',
    
  21.   'packages/shared/**/*.js',
    
  22.   // Shims and Flow environment
    
  23.   'scripts/flow/*.js',
    
  24.   'scripts/rollup/shims/**/*.js',
    
  25. ];
    
  26. 
    
  27. // Files that we distribute on npm that should be ES5-only.
    
  28. const es5Paths = ['packages/*/npm/**/*.js'];
    
  29. 
    
  30. module.exports = {
    
  31.   esNextPaths,
    
  32.   es5Paths,
    
  33. };