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. module.exports = function dynamicImports() {
    
  10.   return {
    
  11.     name: 'scripts/rollup/plugins/dynamic-imports',
    
  12.     renderDynamicImport({targetModuleId}) {
    
  13.       if (targetModuleId === null) {
    
  14.         return {left: 'import(', right: ')'};
    
  15.       }
    
  16.       return null;
    
  17.     },
    
  18.   };
    
  19. };