load__cjs.js 294 B

1234567891011121314
  1. /**
  2. * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. 'use strict';
  6. /* global require */
  7. export default function load( modulePath ) {
  8. return new Promise( ( resolve ) => {
  9. resolve( require( modulePath ) );
  10. } );
  11. }